|
NAMEHTML::ResolveLink - Resolve relative links in (X)HTML into absolute URISYNOPSISuse HTML::ResolveLink; my $resolver = HTML::ResolveLink->new( base => 'http://www.example.com/foo/bar.html', callback => sub { my($uri, $old) = @_; # ... }, ); $html = $resolver->resolve($html); DESCRIPTIONHTML::ResolveLink is a module to rewrite relative links in XHTML or HTML into absolute URI.For example. when you have <a href="foo.html">foo</a> <img src="/bar.gif" /> and use "http://www.example.com/foo/bar" as "base" URL, you'll get: <a href="http://www.example.com/foo/foo.html">foo</a> <img src="http://www.example.com/bar.gif" /> If the parser encounters "<base>" tag in HTML, it'll honor that. METHODS
AUTHORTatsuhiko Miyagawa <miyagawa@bulknews.net>This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSOHTML::Parser, HTML::LinkExtorPOD ERRORSHey! The above document had some coding errors, which are explained below:
Visit the GSP FreeBSD Man Page Interface. |