Skip to content

Commit

Permalink
www/p5-HTML-Defang: New port: HTML::Defang - Cleans HTML as well as C…
Browse files Browse the repository at this point in the history
…SS 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
  • Loading branch information
Martin Neubauer authored and metalefty committed Nov 29, 2022
1 parent b8e3bc2 commit 3f81d34
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions www/Makefile
Expand Up @@ -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
Expand Down
19 changes: 19 additions & 0 deletions www/p5-HTML-Defang/Makefile
@@ -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>
3 changes: 3 additions & 0 deletions www/p5-HTML-Defang/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1667040189
SHA256 (HTML-Defang-1.07.tar.gz) = 882dc4a9dcfae8799235f4bad0062ee55ddbe408be1a5e4a7574b262e3fe07ce
SIZE (HTML-Defang-1.07.tar.gz) = 46222
4 changes: 4 additions & 0 deletions www/p5-HTML-Defang/pkg-descr
@@ -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.
2 changes: 2 additions & 0 deletions www/p5-HTML-Defang/pkg-plist
@@ -0,0 +1,2 @@
%%SITE_PERL%%/HTML/Defang.pm
%%PERL5_MAN3%%/HTML::Defang.3.gz

0 comments on commit 3f81d34

Please sign in to comment.