NAME

HTML::StripScripts::Parser - XSS filter using HTML::Parser

SYNOPSIS

use HTML::StripScripts::Parser;

my $hss = HTML::StripScripts::Parser->new({ Context => 'Document' });

$hss->parse_file("foo.html");

print $hss->filtered_document;

DESCRIPTION

This class subclasses both HTML::StripScripts and HTML::Parser, adding the input methods that HTML::Parser provides to HTML::StripScripts.

See HTML::StripScripts and HTML::Parser.

CONSTRUCTORS

new ( CONFIG )

Creates a new HTML::StripScripts::Parser object, and invokes the HTML::Parser init() method so that tags are fed to the correct HTML::StripScripts methods.

The CONFIG parameter has the same semantics as the CONFIG parameter to the HTML::StripScripts constructor.

METHODS

See HTML::Parser for input methods, HTML::StripScripts for output methods.

SUBCLASSING

The HTML::StripScripts::Parser class is subclassable. Filter objects are plain hashes. The hss_init() method takes the same arguments as new(), and calls the initialization methods of both HTML::StripScripts and HTML::Parser.

See "SUBCLASSING" in HTML::StripScripts and "SUBCLASSING" in HTML::Parser.

SEE ALSO

HTML::StripScripts, HTML::Parser

AUTHOR

Nick Cleaton <nick@cleaton.net>

COPYRIGHT

Copyright (C) 2003 Nick Cleaton. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 71:

=back without =over