leizongmin / js-xss

Sanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist
http://jsxss.com
Other
5.21k stars 630 forks source link

Ignore greater or less than symbol? #271

Open iamsarthakjoshi opened 1 year ago

iamsarthakjoshi commented 1 year ago

I wanted to allow > and < symbols and not change to &gt; and &lt;. Is it possible to do so? Thanks!

Input: Goto > Pickup Point Expected Output: Goto > Pickup Point

ahsathpt commented 1 year ago

i believe these entities are already displayed/interpreted as text by the browser, so no need to change them back, can you share an example where this is a problem for you?