js-xss icon indicating copy to clipboard operation
js-xss copied to clipboard

The module encodes any < > even if they are not part of a tag

Open tomerb15 opened this issue 5 years ago • 2 comments

For example: xss("This is a > test") will result: this is a &gt; test

I wonder if there is a way to sanitise only Tags?

tomerb15 avatar Jul 17 '19 08:07 tomerb15

你好 解决了吗? 我也遇到了相同的问题

YuanKunLong avatar Nov 20 '20 10:11 YuanKunLong

Same for me. It breaks content of the style attribute that contains css selector ">"

psamusev avatar Apr 06 '23 12:04 psamusev