mirror of
https://git.freebsd.org/ports.git
synced 2025-05-24 23:16:33 -04:00
9 lines
435 B
Text
9 lines
435 B
Text
Sanitize is a whitelist-based HTML sanitizer. Given a list of
|
|
acceptable elements and attributes, Sanitize will remove all
|
|
unacceptable HTML from a string.
|
|
|
|
Using a simple configuration syntax, you can tell Sanitize to
|
|
allow certain elements, certain attributes within those elements,
|
|
and even certain URL protocols within attributes that contain URLs.
|
|
Any HTML elements or attributes that you don't explicitly allow
|
|
will be removed.
|