Rechercher une page de manuel
HTML::RewriteAttributes::Links.3pm
Langue: en
Version: 2008-07-03 (fedora - 01/12/10)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
HTML::RewriteAttributes::Links - concise link rewritingSYNOPSIS
# up for some HTML::ResolveLink? $html = HTML::RewriteAttributes::Links->rewrite($html, "http://search.cpan.org"); # or perhaps HTML::LinkExtor? HTML::RewriteAttributes::Links->rewrite($html, sub { my ($tag, $attr, $value) = @_; push @links, $value; $value; });
DESCRIPTION
"HTML::RewriteAttributes::Links" is a special case of HTML::RewriteAttributes for rewriting links.See HTML::ResolveLink and HTML::LinkExtor for examples of what you can do with this.
METHODS
new
You don't need to call "new" explicitly - it's done in ``rewrite''. It takes no arguments.rewrite HTML, (callback|base)[, args] -> HTML
See the documentation of HTML::RewriteAttributes.Instead of a callback, you may pass a string. This will mimic the behavior of HTML::ResolveLink --- relative links will be rewritten using the given string as a base URL.
SEE ALSO
HTML::RewriteAttributes, HTML::Parser, HTML::ResolveLink, HTML::LinkExtorAUTHOR
Shawn M Moore, "<sartak@bestpractical.com>"BUGS
Please report any bugs or feature requests to "bug-html-rewriteattributes at rt.cpan.org", or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=HTML-RewriteAttributes <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=HTML-RewriteAttributes>.LICENSE
Copyright 2008 Best Practical Solutions, LLC. HTML::RewriteAttributes::Links is distributed under the same terms as Perl itself.Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre