Escapes XML entities from text, so that you don't fall prey to people putting

quotes, less-than/greater-than, and ampersands, into variables that end up in
TT templates.

WWW: http://search.cpan.org/dist/Template-Plugin-XML-Escape

PR:		ports/130422
Submitted by:	kevit
This commit is contained in:
Martin Wilke 2009-01-14 09:17:17 +00:00
parent d4fc1cb370
commit 81916b6f5e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=226075
5 changed files with 41 additions and 0 deletions

View file

@ -562,6 +562,7 @@
SUBDIR += p5-Template-Extract
SUBDIR += p5-Template-Magic
SUBDIR += p5-Template-Plugin-Lingua-EN-Inflect
SUBDIR += p5-Template-Plugin-XML-Escape
SUBDIR += p5-Test-Perl-Critic
SUBDIR += p5-Text-ASCIITable
SUBDIR += p5-Text-Affixes

View file

@ -0,0 +1,23 @@
# New ports collection makefile for: Template-Plugin-XML-Escape
# Date created: 12 January 2009
# Whom: kevit
#
# $FreeBSD$
#
PORTNAME= Template-Plugin-XML-Escape
PORTVERSION= 0.02
CATEGORIES= textproc perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= simarg@gmail.com
COMMENT= Escape variables to suit being placed into XML
BUILD_DEPENDS= p5-Template-Toolkit>=2.20:${PORTSDIR}/www/p5-Template-Toolkit
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
MAN3= Template::Plugin::XML::Escape.3
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
MD5 (Template-Plugin-XML-Escape-0.02.tar.gz) = 8a1189de2fc767915b7878bdfebd2dc2
SHA256 (Template-Plugin-XML-Escape-0.02.tar.gz) = fb3c62236d0fd4b51a92067396ce0a3ae226295015c87183918b138923d1fac4
SIZE (Template-Plugin-XML-Escape-0.02.tar.gz) = 2216

View file

@ -0,0 +1,5 @@
Escapes XML entities from text, so that you don't fall prey to people putting
quotes, less-than/greater-than, and ampersands, into variables that end up in
TT templates.
WWW: http://search.cpan.org/dist/Template-Plugin-XML-Escape

View file

@ -0,0 +1,9 @@
%%SITE_PERL%%/Template/Plugin/XML/Escape.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Template/Plugin/XML/Escape/.packlist
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Template/Plugin/XML/Escape
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Template/Plugin/XML
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Template/Plugin
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Template
@dirrmtry %%SITE_PERL%%/Template/Plugin/XML
@dirrmtry %%SITE_PERL%%/Template/Plugin
@dirrmtry %%SITE_PERL%%/Template