leizongmin / js-xss

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

fix #245 #253

Closed lumburr closed 2 years ago

lumburr commented 2 years ago

fix https://github.com/leizongmin/js-xss/issues/245

Case A

<span class=\"preference__text--green text--bold\">BP</span>

Case B

<span class= "preference__text--green text--bold">BP</span>