DEV Community

Samandar Ravshanov
Samandar Ravshanov

Posted on

📦 HTML sanitizer

from functorflow import f

dirty = '<script>alert("xss");</script><p>hello'
clean_html = f('sanitize-html', dirty)
print(clean_html) # '<p>hello</p>'
Enter fullscreen mode Exit fullscreen mode

Stop wasting time installing and configuring Python libraries. Use them right away. FunctorFlow instantly auto-install and auto-config them for you.

Top comments (0)