|
NAMEPlagger::Plugin::Filter::Base - Base filter class to handle HTML snippets 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);
}
DESCRIPTIONPlagger::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
AUTHORTatsuhiko Miyagawa SEE ALSOPlagger, HTML::Parser
|