www/p5-HTML-Defang: New port: HTML::Defang - Cleans HTML as well as CSS of scripting

This module accepts an input HTML and/or CSS string and removes any
executable code including scripting, embedded objects, applets, etc.,
and neutralises any XSS attacks. A whitelist based approach is used
which means only HTML known to be safe is allowed through.

PR:		267880
This commit is contained in:
Martin Neubauer 2022-11-19 20:29:56 +01:00 committed by Koichiro Iwao
parent b8e3bc2cd0
commit 3f81d34c3e
5 changed files with 29 additions and 0 deletions

View File

@ -788,6 +788,7 @@
SUBDIR += p5-HTML-ContentExtractor
SUBDIR += p5-HTML-DOM
SUBDIR += p5-HTML-Declare
SUBDIR += p5-HTML-Defang
SUBDIR += p5-HTML-Defaultify
SUBDIR += p5-HTML-Diff
SUBDIR += p5-HTML-Display

View File

@ -0,0 +1,19 @@
PORTNAME= HTML-Defang
PORTVERSION= 1.07
CATEGORIES= www perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= m.ne@gmx.net
COMMENT= Cleans HTML of executable contents, and neutralises XSS attacks
WWW= https://metacpan.org/dist/HTML-Defang
LICENSE= ART10 GPLv1+
LICENSE_COMB= dual
USES= perl5
USE_PERL5= configure
NO_ARCH= yes
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1667040189
SHA256 (HTML-Defang-1.07.tar.gz) = 882dc4a9dcfae8799235f4bad0062ee55ddbe408be1a5e4a7574b262e3fe07ce
SIZE (HTML-Defang-1.07.tar.gz) = 46222

View File

@ -0,0 +1,4 @@
This module accepts an input HTML and/or CSS string and removes any
executable code including scripting, embedded objects, applets, etc.,
and neutralises any XSS attacks. A whitelist based approach is used
which means only HTML known to be safe is allowed through.

View File

@ -0,0 +1,2 @@
%%SITE_PERL%%/HTML/Defang.pm
%%PERL5_MAN3%%/HTML::Defang.3.gz