You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this method converts the HTML entities &, <, >, ", and ' in string to their corresponding characters.
but & can not convert, can add this feature, thanks
_.unescape('Couples Therapy Naked & Afraid')
current my source code:
_.unescape('Couples Therapy Naked & Afraid').replaceAll('&', '&')
The text was updated successfully, but these errors were encountered:
Hi, I noticed that lodash only supports escaping the following characters: &, <, >, “, and ‘. I believe this is an intentional design decision to keep lodash lightweight. According to the official documentation, the lodash team even recommends using a third-party library like he for encoding and decoding HTML entities. This is just my personal observation, but it seems like a reasonable trade-off to avoid the overhead of handling all Unicode characters.
The text was updated successfully, but these errors were encountered: