Port details on branch 2022Q3 |
- p5-HTML-StripScripts Strip scripting constructs out of HTML
- 1.06 www =0 1.06Version of this port present on the latest quarterly branch.
- Maintainer: bofh@FreeBSD.org
- Port Added: 2008-05-09 17:26:26
- Last Update: 2022-09-07 21:58:51
- Commit Hash: fb16dfe
- Also Listed In: perl5
- License: ART10 GPLv1+
- WWW:
- https://metacpan.org/release/HTML-StripScripts
- Description:
- This module strips scripting constructs out of HTML, leaving as
much non-scripting markup in place as possible. This allows web
applications to display HTML originating from an untrusted source
without introducing XSS (cross site scripting) vulnerabilities.
You will probably use HTML::StripScripts::Parser rather than using
this module directly.
The process is based on whitelists of tags, attributes and attribute
values. This approach is the most secure against disguised scripting
constructs hidden in malicious HTML documents. As well as removing
scripting constructs, this module ensures that there is a matching
end for each start tag, and that the tags are properly nested.
Previously, in order to customise the output, you needed to subclass
HTML::StripScripts and override methods. Now, most customisation
can be done through the Rules option provided to new(). (See
examples/declaration/ and examples/tags/ for cases where subclassing
is necessary.) The HTML document must be parsed into start tags,
end tags and text before it can be filtered by this module. Use
either HTML::StripScripts::Parser or HTML::StripScripts::Regex
instead if you want to input an unparsed HTML document.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- p5-HTML-StripScripts>0:www/p5-HTML-StripScripts
- To install the port:
- cd /usr/ports/www/p5-HTML-StripScripts/ && make install clean
- To add the package, run one of these commands:
- pkg install www/p5-HTML-StripScripts
- pkg install p5-HTML-StripScripts
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: p5-HTML-StripScripts
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1465302675
SHA256 (HTML-StripScripts-1.06.tar.gz) = 222bfb7ec1fdfa465e32da3dc4abed2edc7364bbe19e8e3c513c7d585b0109ad
SIZE (HTML-StripScripts-1.06.tar.gz) = 44745
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- perl5>=5.32.r0<5.33 : lang/perl5.32
- Runtime dependencies:
-
- perl5>=5.32.r0<5.33 : lang/perl5.32
- This port is required by:
- for Build
-
- www/p5-HTML-StripScripts-Parser
- for Run
-
- www/p5-HTML-StripScripts-Parser
Configuration Options:
- No options to configure
- Options name:
- www_p5-HTML-StripScripts
- USES:
- perl5
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|