sanitize_html 1.2.0 copy "sanitize_html: ^1.2.0" to clipboard
sanitize_html: ^1.2.0 copied to clipboard

outdated

Function for sanitizing HTML to prevent XSS by restrict elements and attributes to a safe subset of allowed values.

v1.2.0 #

  • Does not depend on universal_html, uses custom HTML rendering for the output.
  • Allowed classes are kept, even if there are non-allowed classes present on the same element.

v1.1.0 #

  • Add options allowElementId and allowClassName to allow specific element ids and class names.

v1.0.0 #

  • Initial release.
40
likes
0
pub points
94%
popularity

Publisher

verified publishergoogle.dev

Function for sanitizing HTML to prevent XSS by restrict elements and attributes to a safe subset of allowed values.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

html, meta

More

Packages that depend on sanitize_html