SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

BotDetect - Real-Time Bot Detection API
 
 

MAN page from Old RedHat 7.X perl-HTML-QuickCheck-1.0b1-8.i386.rpm

HTML::QuickCheck

Section: User Contributed Perl Documentation (3)
Updated: perl v5.6.0
Index 

NAME

HTMLQuickCheck.pm --- a simple and fast HTML syntax checking package forperl 4 and perl 5 

SYNOPSIS

    require 'HTMLQuickCheck.pm';
    &HTML'QuickCheck'OK($html_text) || die "Bad HTML: $HTML'QuickCheck'Error";
    or for perl 5:    HTML::QuickCheck::OK($html_text) ||             die "Bad HTML: $HTML::QuickCheck::Error";
 

DESCRIPTION

The objective of the package is to provide a fast and essential HTML check(esp. for CGI scripts where response time is important) to prevent a pieceof user input HTML code from messing up the rest of a file, i.e., tominimize and localize any possible damage created by including a piece ofuser input HTML text in a dynamic document.

HTMLQuickCheck checks for unmatched < and >, unmatched tags and impropernesting, which could ruin the rest of the document. Attributes andelements with optional end tags are not checked, as they should not causedisasters with any decent browsers (they should ignore any unrecognizedtags and attributes according to the standard). A piece of HTML thatpasses HTMLQuickCheck may not necessarily be valid HTML, but it would bevery unlikely to screw others but itself. A valid piece of HTML thatdoesn't pass the HTMLQuickCheck is however very likely to screw manybrowsers(which are obviously broken in terms of strict conformance).

HTMLQuickCheck currently supports HTML 1.0, 2.x (draft), 3.0 (draft) andnetscape extensions (1.1). 

EXAMPLE

    htmlchk, a simple html checker:
    #!/usr/local/bin/perl    require 'HTMLQuickCheck.pm';    undef $/;    print &HTML'QuickCheck'OK(<>) ? "HTML OK\n" :             "Bad HTML:\n", $HTML'QuickCheck'Error;    __END__
    Usage:     htmlchk [html_file]
 

AUTHOR

Luke Y. Lu <yluAATTmail.utexas.edu> 

SEE ALSO

HTML docs at <URL:http://www.w3.org/hypertext/WWW/MarkUp/MarkUp.html>;HTML validation service at <URL:http://www.halsoft.com/html/>;perlSGML package at <URL:http://www.oac.uci.edu/indiv/ehood/perlSGML.html>;weblint at <URL:http://www.khoros.unm.edu/staff/neilb/weblint.html> 

BUGS

Please report them to the author.


 

Index

NAME
SYNOPSIS
DESCRIPTION
EXAMPLE
AUTHOR
SEE ALSO
BUGS

This document was created byman2html,using the manual pages.
 
ICM Bot detect detector