Query: http::proxy::bodyfilter::htmltext
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
HTTP::Proxy::BodyFilter::htmltext(3pm) User Contributed Perl Documentation HTTP::Proxy::BodyFilter::htmltext(3pm)NAMEHTTP::Proxy::BodyFilter::htmltext - A filter to transmogrify HTML textSYNOPSISuse HTTP::Proxy::BodyFilter::tags; use HTTP::Proxy::BodyFilter::htmltext; # could it be any simpler? $proxy->push_filter( mime => 'text/html', response => HTTP::Proxy::BodyFilter::tags->new, response => HTTP::Proxy::BodyFilter::htmltext->new( sub { tr/a-zA-z/n-za-mN-ZA-M/ } ) );DESCRIPTIONThe HTTP::Proxy::BodyFilter::htmltext is a filter spawner that calls the callback of your choice on any HTML text (outside "<script>" and "<style>" tags, and entities). The subroutine should modify the content of $_ as it sees fit. Simple, and terribly efficient.METHODSThe filter defines the following methods, called automatically: init() Ensures that the filter is initialised with a CODE reference. begin() Per page parser initialisation. filter() A simple HTML parser that runs the given callback on the text contained in the HTML data. Please look at HTTP::Proxy::BodyFilter::htmlparser if you need something more elaborate.SEE ALSOHTTP::Proxy, HTTP::Proxy::BodyFilter, HTTP::Proxy::BodyFilter::htmlparser.AUTHORPhilippe "BooK" Bruhat, <book@cpan.org>.COPYRIGHTCopyright 2003-2005, Philippe Bruhat.LICENSEThis module is free software; you can redistribute it or modify it under the same terms as Perl itself. perl v5.12.4 2011-07-03 HTTP::Proxy::BodyFilter::htmltext(3pm)
Similar Topics in the Unix Linux Community |
---|
how to set Proxy for Pop3, SMTP etc |
Safesquid-Content Filtering Proxy Server |
Proxy ARP Difficulties |
Issue Related to Proxy Server |
SQUID Proxy server configuration |