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
In a naive, multi-pass entity replacement (eg, replace all `&` with
`&`, replace all `<` with `<`) the replacement order is
important. (You must replace `&` with `&` first, lest you replace
`<` with `<` then replace `<` with `&lt;`.)
The `escapeHTML` function is a single-pass replacement of each entity at
a time, so is not vulnerable to such a failure mode, but add a test to
avoid regressions.
0 commit comments