HTML::WidgetValidator - Perl framework for validating various widget HTML snipets
This document describes HTML::WidgetValidator version 0.0.3
use HTML::WidgetValidator; my $validator = HTML::WidgetValidator->new; my $result = $validator->validate($html); my $code = $result->code; my $name = $result->name;
When HTML code is passed to HTML::WidgetValidator, it will analyze the code to see what kind of Widget it is for. It is possible to pre-specify the type of Widget that will be detected (if nothing is specified all included Widget types will be considered).
If the HTML Tag representing the Widget is too long, it is necessary to divide the HTML code up by elements. For example the Yahoo! Weather Information code below is comprised of two scripts, it is necessary to pass along each script separately.
<script>var CFLwidth = "150";var CFLheight = "322"; var CFLswfuri = "http://i.yimg.jp/images/weather/blogparts/yj_weather.swf?mapc=4"; </script> <script type="text/javascript" charset="euc-jp" src="http://weather.yahoo.co.jp/weather/promo/js/weather.js"></script>
Takaaki Mizuno <mizuno_takaaki@hatena.ne.jp>
<mizuno_takaaki@hatena.ne.jp>
Copyright (C) Hatena Inc. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install HTML::WidgetValidator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::WidgetValidator
CPAN shell
perl -MCPAN -e shell install HTML::WidgetValidator
For more information on module installation, please visit the detailed CPAN module installation guide.