HTML::CGIChecker 0.90
Sponsored Links
HTML::CGIChecker 0.90 Ranking & Summary
File size:
0.014 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
814
Date added:
2007-08-07
Publisher:
Tomas Styblo
HTML::CGIChecker 0.90 description
HTML::CGIChecker is a Perl module to detect dangerous HTML code.
SYNOPSIS
use HTML::CGIChecker;
$feedback =
< TABLE CELLPADDING="2" >< TR >< TD >One column< /TD >< /TR >< /TABLE >< BR >
" Arrays & variables "
Dough > Hi, how are you ?
And now some Perl code:
< PRE >
print "< HTML >< BODY >< /BODY >< /HTML >";
< /PRE >
;
# create the $checker object
$checker = new HTML::CGIChecker (
mode => allow,
allowclasses => [ qw( tables images ) ],
allowtags => [ qw ( B I A U STRONG BR HR ) ],
jscript => 0,
html => 0,
pre => 1,
debug => 0,
err_tag => Tag {tag} is not allowed in {element}.
);
# Now you can use it to check any string using its checkHTML()
# method. It "remembers" its configuration, so you can reuse it.
($checked_feedback, $Warnings) =
$checker->checkHTML ($feedback);
# Process the results ...
if ($checked_feedback) {
# save $checked_feedback to the database ....
}
else {
# print the warnings ...
print join ("n", @{$Warnings});
}
The example above produces no warning messages and returns $feedback checked and properly HTML escaped. The only HTML "error" - the unescaped ">" bracket on the fourth line - is autocorrected. One warning message was overriden by a customized version. Potential warnings would not be HTML formatted and HTML safe, because the html parameter is not true.
SYNOPSIS
use HTML::CGIChecker;
$feedback =
< TABLE CELLPADDING="2" >< TR >< TD >One column< /TD >< /TR >< /TABLE >< BR >
" Arrays & variables "
Dough > Hi, how are you ?
And now some Perl code:
< PRE >
print "< HTML >< BODY >< /BODY >< /HTML >";
< /PRE >
;
# create the $checker object
$checker = new HTML::CGIChecker (
mode => allow,
allowclasses => [ qw( tables images ) ],
allowtags => [ qw ( B I A U STRONG BR HR ) ],
jscript => 0,
html => 0,
pre => 1,
debug => 0,
err_tag => Tag {tag} is not allowed in {element}.
);
# Now you can use it to check any string using its checkHTML()
# method. It "remembers" its configuration, so you can reuse it.
($checked_feedback, $Warnings) =
$checker->checkHTML ($feedback);
# Process the results ...
if ($checked_feedback) {
# save $checked_feedback to the database ....
}
else {
# print the warnings ...
print join ("n", @{$Warnings});
}
The example above produces no warning messages and returns $feedback checked and properly HTML escaped. The only HTML "error" - the unescaped ">" bracket on the fourth line - is autocorrected. One warning message was overriden by a customized version. Potential warnings would not be HTML formatted and HTML safe, because the html parameter is not true.
HTML::CGIChecker 0.90 Screenshot
HTML::CGIChecker 0.90 Keywords
HTML
CGIChecker
CGIChecker 0.90
to detect
Perl module
HTML code
feedback
Perl
module
warnings
detect
checked
HTML::CGIChecker
HTMLCGIChecker
HTML::CGIChecker 0.90
Libraries
Bookmark HTML::CGIChecker 0.90
HTML::CGIChecker 0.90 Copyright
WareSeeker periodically updates pricing and software information of HTML::CGIChecker 0.90 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of HTML::CGIChecker 0.90 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
html codes
html color codes
html codes for myspace
html color code
myspace html codes
cool html codes for myspace
cool html codes
html body html
perl modules
myspace html background codes
html code generator
myspace html
html code tutorial
list of html codes
what is html
html rulez d00d
install perl module
html codes tutorial
Related Software
HOP::Lexer is a Perl module for "Higher Order Perl" Lexer. Free Download
HTML::QuickTable is a Perl module to quickly create fairly complex HTML tables. Free Download
HTML::Declare is a Perl module for When Template Systems Are Too Huge And Heredocs Too Messy. Free Download
HTML::Adsense is a Perl module that can create adsense widgets easily. Free Download
HTML Objects is a Perl module library for turning HTML tags into Perl objects. Free Download
HTML::Embperl is a Perl module for building dynamic Websites with Perl. Free Download
Code::Perl is a Perl module to produce Perl code from a tree. Free Download
Blatte::HTML is a Perl module that contains tools for generating HTML with Blatte. Free Download
Latest Software
Popular Software
Favourite Software