NAME

URL::Transform::using::Remove - no url transformation just remove the content

SYNOPSIS

my $urlt = URL::Transform::using::Remove->new(
    'output_function'    => sub { $output .= "@_" },
);
$urlt->parse_string("window.location='http://perl.org';");

print "and this is the output: ", $output;

DESCRIPTION

Using module you can performs an url transformation by removing everything! It's quite safe! ;-)

This module is used by URL::Transform to remove all JavaScript from the HTML documents as it is nearly impossible to update urls inside the JavaScript using generic way.

PROPERTIES

output_function
transform_function

METHODS

new

Object constructor.

Requires:

output_function

parse_string($string)

Pass empty string to output_function.

parse_chunk($string)

Pass empty string to output_function.

parse_file($file_name)

Pass empty string to output_function.

AUTHOR

Jozef Kutej