File: README

package info (click to toggle)
libhtml-stripscripts-perl 1.06-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 568 kB
  • sloc: perl: 1,006; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 621 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Using HTML::StripScripts directly
---------------------------------

HTML::StripScripts expects a stream of tokens.  Normally, to parse HTML, you
would use HTML::StripScripts::Parser or HTML::StripScripts::LibXML.

If, however, you are generating the tags yourself, and want to use
HTML::StripScripts directly, you need to pass it the tokens in order.

Look at examples/direct/direct.pl for an example of how to do this.

To run the example, type:

   perl examples/direct/direct.pl

This script passes <ul> and <li> tags, along with one bad </li> tag, ie there is
no corresponding opening <li>, so this tag is filtered.