apostrophecms / sanitize-html

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

Closed aditigupta50 closed 1 year ago

aditigupta50 commented 1 year ago

<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>

stale[bot] commented 1 year ago

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.