Path to this page:
NOTICE: This package has been removed from pkgsrc./
wip/ruby-sanitize,
Ruby HTML and CSS sanitizer
Branch: CURRENT,
Version: 2.1.1,
Package name: ruby31-sanitize-2.1.1,
Maintainer: pkgsrc-usersSanitize 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)
- (2023-11-13) Package deleted from pkgsrc
- (2023-02-13) Package has been reborn
- (2023-02-13) Updated to version: ruby31-sanitize-2.1.1
- (2021-10-08) Updated to version: ruby27-sanitize-2.1.1
- (2020-09-29) Package has been reborn
- (2020-09-29) Package deleted from pkgsrc