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
While setting useNamedReferences to true and encodeEverything to true, the character / is encoded as / but the character \ is encoded as \ The same happens with the hyphen/minus character, which is encoded as -
var entity = he.encode(html, {
useNamedReferences: true,
encodeEverything: true
})
The text was updated successfully, but these errors were encountered:
crlngn
changed the title
allowUnsafeSymbols
useNamedReferences doesn't work for all characters
Jul 12, 2019
While setting
useNamedReferences
totrue
andencodeEverything
totrue
, the character/
is encoded as/
but the character\
is encoded as\
The same happens with the hyphen/minus character, which is encoded as-
The text was updated successfully, but these errors were encountered: