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

allow svg element #646

Closed gkumar9891 closed 4 months ago

gkumar9891 commented 5 months ago

In this PR I have added a test case for the SVG element to prevent the element from lowercased and same for the attributes.

BoDonkey commented 4 months ago

Thanks for doing this! Small comments.