Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    HTML::StripScripts::LibXML 0.12

    Download button

    No screenshots available
    Downloads: 319  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.0/5)
    6 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Clinton Gormley | More programs
    Perl Artistic License / FREE
    December 4th, 2007, 12:49 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    HTML::StripScripts::LibXML description

    An XSS filter that outputs a LibXML Document or DocumentFragment

    HTML::StripScripts::LibXML is an XSS filter that outputs a LibXML Document or DocumentFragment.

    SYNOPSIS

    use HTML::StripScripts::LibXML();

    my $hss = HTML::StripScripts::LibXML->new(

    {
    Context => 'Document', ## HTML::StripScripts configuration
    Rules => { ... },
    },

    strict_comment => 1, ## HTML::Parser options
    strict_names => 1,

    );

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

    OR

    $xml_doc = $hss->filter_html($html);


    This class provides an easy interface to HTML::StripScripts, using HTML::Parser to parse the HTML, and returns an XML::LibXML::Document or XML::LibXML::DocumentFragment.

    See HTML::Parser for details of how to customise how the raw HTML is parsed into tags, and HTML::StripScripts for details of how to customise the way those tags are filtered. This module is a subclass of HTML::StripScripts::Parser.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    XSS filter | LibXML Document | Perl module | XSS | filter | LibXML

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM