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  -  PLAGGER::PLUGIN::FILTER::BASE (3)

.ds Aq ’

NAME

Plagger::Plugin::Filter::Base - Base filter class to handle HTML snippets

CONTENTS

SYNOPSIS



  package Plagger::Plugin::Filter::Foo;
  use base qw( Plagger::Plugin::Filter::Base )

  sub filter {
      my($self, $body) = @_;

      # filter $body
      # store how many chunks are filtered into $count

      return ($count, $body);
  }



DESCRIPTION

Plagger::Plugin::Filter::Base is a base class for Plagger::Plugin::Filter to handle entry body with as much care as possible not to break HTML structure.

Your filter will support text_only configuration by subclassing this module:



  - module: Filter::Foo
    config:
      text_only: 1



AUTHOR

Tatsuhiko Miyagawa

SEE ALSO

Plagger, HTML::Parser
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PLAGGER::PLUGIN::FILTER::BASE (3) 2006-12-05

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