aboutsummaryrefslogtreecommitdiff
path: root/textproc/rubygem-sanitize/pkg-descr
blob: 184d45637d64bbebf74c794f5a184d57c4bbfb62 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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.

WWW: https://github.com/rgrove/sanitize