• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

My/H07-Dec-2005-1712

t/H07-Dec-2005-170143

ChangesH A D07-Dec-20054.9 KiB11797

MANIFESTH A D07-Dec-2005198 1211

META.ymlH A D07-Dec-2005377 1311

Makefile.PLH A D16-Oct-2005376 1512

READMEH A D02-Jun-20041.1 KiB3625

TagFilter.pmH A D07-Dec-200535.6 KiB1,049392

README

1HTML::TagFilter 0.08
2
3DESCRIPTION
4
5HTML::TagFilter is a subclass of HTML::Parser with a
6single purpose: it will remove unwanted html tags and attributes from a
7piece of text. It can act in a more or less fine-grained way - you can
8specify permitted tags, permitted attributes of each tag, and permitted
9values for each attribute in as much detail as you like.
10
11For many uses the following will suffice:
12
13use HTML::TagFilter;
14my $tf = new HTML::TagFilter;
15my $clean_html = $tf->filter($dirty_html);
16
17But you can also specify your own rule sets, tweak the behaviour of the
18filter and generally do what you like. There's lots of documentation in pod,
19and don't be put off by the low version number: there have been twenty-odd
20public releases and the interface is now mature, if not exactly friendly.
21
22INSTALLATION
23
24perl Makefile.PL
25make
26make test
27make install
28
29Please use https://rt.cpan.org/ to report bugs & omissions, describe cross-site
30attacks that get through, or just to suggest improvements.
31
32Copyright 2001-4 William Ross (wross@cpan.org)
33
34This library is free software; you can redistribute it and/or modify it
35under the same terms as Perl itself.
36