Sanitize

From Free Software Directory
 
Jump to: navigation, search


[edit]

Sanitize

https://github.com/rgrove/sanitize/
whitelist-based HTML sanitizer

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.

Because it's based on Nokogiri, a full-fledged HTML parser, rather than a bunch of fragile regular expressions, Sanitize has no trouble dealing with malformed or maliciously-formed HTML and returning safe output.





Licensing

License

Verified by

Verified on

Notes

License

Expat

Verified by

Debian: Jonas Genannt <jonas.genannt@capi2name.de>

Verified on

15 February 2014

Notes

License: expat




Leaders and contributors

Contact(s)Role
Ryan Grove contact


Resources and communication

AudienceResource typeURI
Downloadhttps://github.com/rgrove/sanitize/
Ruby (Ref)https://rubygems.org/gems/sanitize
Debian (Ref) (R)https://tracker.debian.org/pkg/ruby-sanitize


Software prerequisites




Entry








"contact" is not in the list (Maintainer, Contributor, Developer, Sponsor, Unknown) of allowed values for the "Role" property.


"Ruby (Ref)" is not in the list (General, Help, Bug Tracking, Support, Developer) of allowed values for the "Resource audience" property.


"Debian (Ref) (R)" is not in the list (General, Help, Bug Tracking, Support, Developer) of allowed values for the "Resource audience" property.








Date 2015-07-17
Source Debian
Source link http://packages.debian.org/sid/ruby-sanitize

[[Category:]]



Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.

The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.