aboutsummaryrefslogtreecommitdiff
path: root/textproc/rubygem-sanitize
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2011-10-02 17:14:09 +0000
committerSteve Wills <swills@FreeBSD.org>2011-10-02 17:14:09 +0000
commitfb3a2d1c705a5bbc400f0c0a877b0e7d14eb9b84 (patch)
tree875a92c3d1ccfd3dc9a550f4ba8cc8497075a17f /textproc/rubygem-sanitize
parentdf9b21a0b1ce4ffb93a4d472a6670c2c342a1731 (diff)
downloadports-fb3a2d1c705a5bbc400f0c0a877b0e7d14eb9b84.tar.gz
ports-fb3a2d1c705a5bbc400f0c0a877b0e7d14eb9b84.zip
Notes
Diffstat (limited to 'textproc/rubygem-sanitize')
-rw-r--r--textproc/rubygem-sanitize/Makefile22
-rw-r--r--textproc/rubygem-sanitize/distinfo2
-rw-r--r--textproc/rubygem-sanitize/pkg-descr13
3 files changed, 37 insertions, 0 deletions
diff --git a/textproc/rubygem-sanitize/Makefile b/textproc/rubygem-sanitize/Makefile
new file mode 100644
index 000000000000..f00b583621f1
--- /dev/null
+++ b/textproc/rubygem-sanitize/Makefile
@@ -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>
diff --git a/textproc/rubygem-sanitize/distinfo b/textproc/rubygem-sanitize/distinfo
new file mode 100644
index 000000000000..18e109bb35b3
--- /dev/null
+++ b/textproc/rubygem-sanitize/distinfo
@@ -0,0 +1,2 @@
+SHA256 (rubygem/sanitize-2.0.2.gem) = f805fe593ca3c2650401c509c120ae9135dc88b353c0ec15b828743d218df205
+SIZE (rubygem/sanitize-2.0.2.gem) = 14336
diff --git a/textproc/rubygem-sanitize/pkg-descr b/textproc/rubygem-sanitize/pkg-descr
new file mode 100644
index 000000000000..35ab28e2529f
--- /dev/null
+++ b/textproc/rubygem-sanitize/pkg-descr
@@ -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