HTML-TagFilter
Html-tagfilter
https://metacpan.org/release/HTML-TagFilter
fine-grained HTML-filter, XSS-blocker and mailto-obfuscator
HTML::TagFilter is a subclass of HTML::Parser with a single purpose: it will remove unwanted HTML tags and attributes from a piece of text. It can act in a more or less fine-grained way: you can specify permitted tags, permitted attributes of each tag, and permitted values for each attribute in as much detail as you like.
Tags which are not allowed are removed. Tags which are allowed are trimmed down to only the attributes which are allowed for each tag. It is possible to allow all or no attributes from a tag, or to allow all or no values for an attribute, and so on.
The filter will also guard against cross-site scripting attacks and obfuscate any mailto:email addresses, unless you tell it not to.
Download
Categories
Licensing
License
Verified by
Verified on
Notes
License
Verified by
Debian: Daniel Lintott <daniel@serverb.co.uk>
Verified on
11 April 2014
Notes
License: artistic or gpl-1+
Leaders and contributors
Contact(s) | Role |
---|---|
William Ross | contact |
Resources and communication
Audience | Resource type | URI |
---|---|---|
Perl (Ref) | https://metacpan.org/release/HTML-TagFilter | |
Debian (Ref) (R) | https://tracker.debian.org/pkg/libhtml-tagfilter-perl |
Software prerequisites
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.
The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.