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.
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.