GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  HTML::REWRITEATTRIBUTES::LINKS (3)

.ds Aq ’

NAME

HTML::RewriteAttributes::Links - concise link rewriting

CONTENTS

SYNOPSIS



    # 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

CWnew

You don’t need to call new explicitly - it’s done in rewrite. It takes no arguments.

CWrewrite 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::ResolveLinkrelative links will be rewritten using the given string as a base URL.

SEE ALSO

HTML::RewriteAttributes, HTML::Parser, HTML::ResolveLink, HTML::LinkExtor

AUTHOR

Shawn M Moore, <sartak@bestpractical.com>

LICENSE

Copyright 2008-2010 Best Practical Solutions, LLC. HTML::RewriteAttributes::Links is distributed under the same terms as Perl itself.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 HTML::REWRITEATTRIBUTES::LINKS (3) 2010-11-24

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.