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

What is the Python equivalent of your library or do you have a Python implementation? #563

Closed slidenerd closed 1 year ago

slidenerd commented 1 year ago

I am trying to get this library s functionality to work inside Python. Do you have a Python version of this library or any plans to implement one? If not what do you think would be a Python equivalent?

Thank you for your time

BoDonkey commented 1 year ago

Not sure if this would work for you: https://pypi.org/project/html-sanitizer/