NOTICE: This package has been removed from pkgsrc

./wip/ruby-sanitize, Ruby HTML and CSS sanitizer

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ]


Branch: CURRENT, Version: 2.1.1, Package name: ruby31-sanitize-2.1.1, Maintainer: pkgsrc-users

Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
acceptable elements, attributes, and CSS properties, Sanitize will
remove all unacceptable HTML and/or CSS from a string.

Using a simple configuration syntax, you can tell Sanitize to allow
certain HTML elements, certain attributes within those elements, and
even certain URL protocols within attributes that contain URLs. You
can also whitelist CSS properties, @ rules, and URL protocols you wish
to allow in elements or attributes containing CSS. Any HTML or CSS
that you don't explicitly allow will be removed.

Sanitize is based on Google's Gumbo HTML5 parser, which parses HTML
exactly the same way modern browsers do, and Crass, which parses CSS
exactly the same way modern browsers do. As long as your whitelist
config only allows safe markup and CSS, even the most malformed or
malicious input will be transformed into safe output.


Required to run:
[textproc/ruby-nokogiri] [lang/ruby26-base]

Required to build:
[pkgtools/cwrappers]

Master sites:

RMD160: f9c4e226e1cac3681a86a1af763c155e02c92a7d
Filesize: 22 KB

Version history: (Expand)