Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis. Built on htmlparser2 for speed and tolerance
MIT License
3.68k
stars
349
forks
source link
All subsequent attributes get removed when an invalid attribute is encountered #582
<a href="test.com" href="javascript:abc.com">test link </a> is changed to <a href="test.com">test link </a> WHEREAS <a href="javascript:abc.com" href="test.com">test link </a> is changed to <a>test link </a>
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
<a href="test.com" href="javascript:abc.com">test link </a>
is changed to<a href="test.com">test link </a>
WHEREAS<a href="javascript:abc.com" href="test.com">test link </a>
is changed to<a>test link </a>