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.

Author: Ryan Grove
WWW: https://github.com/rgrove/sanitize/
WWW: http://wonko.com/post/sanitize

PR:		ports/158312
Submitted by:	Eric Freeman <freebsdports@chillibear.com>
This commit is contained in:
Steve Wills 2011-10-02 17:14:09 +00:00
parent df9b21a0b1
commit fb3a2d1c70
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=282808
4 changed files with 38 additions and 0 deletions

View file

@ -1221,6 +1221,7 @@
SUBDIR += rubygem-rak
SUBDIR += rubygem-rchardet
SUBDIR += rubygem-rdiscount
SUBDIR += rubygem-sanitize
SUBDIR += rubygem-sass
SUBDIR += rubygem-sax-machine
SUBDIR += rubygem-spreadsheet

View file

@ -0,0 +1,22 @@
# Ports collection makefile for: rubygem-sanitize
# Date created: 26 June 2011
# Whom: Eric Freeman <freebsdports@chillibear.com>
#
# $FreeBSD$
#
PORTNAME= sanitize
PORTVERSION= 2.0.2
CATEGORIES= textproc rubygems
MASTER_SITES= RG
MAINTAINER= freebsdports@chillibear.com
COMMENT= Whitelist based HTML sanitizer
RUN_DEPENDS= rubygem-nokogiri>=1.4.4:${PORTSDIR}/textproc/rubygem-nokogiri
USE_RUBY= yes
USE_RUBYGEMS= yes
RUBYGEM_AUTOPLIST= yes
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
SHA256 (rubygem/sanitize-2.0.2.gem) = f805fe593ca3c2650401c509c120ae9135dc88b353c0ec15b828743d218df205
SIZE (rubygem/sanitize-2.0.2.gem) = 14336

View file

@ -0,0 +1,13 @@
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.
Author: Ryan Grove
WWW: https://github.com/rgrove/sanitize/
WWW: http://wonko.com/post/sanitize