Changeset 410
- Timestamp:
- 03/24/06 16:33:07
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plagger/lib/Plagger/Plugin/Filter/Profanity.pm
r407 r410 25 25 =head1 NAME 26 26 27 Plagger::Plugin::Filter:: TTP - Replace ttp:// with http://27 Plagger::Plugin::Filter::Profanity - Profanity filter for entry body 28 28 29 29 =head1 SYNOPSIS 30 30 31 - module: Filter::TTP 31 - module: Filter::Profanity 32 config: 33 text_only: 1 32 34 33 35 =head1 DESCRIPTION 34 36 35 This plugin replaces C<ttp://> with C<http://>. C<ttp://> is a widely36 adopted way of linking an URL without leaking a referer.37 This plugin filters bad English terms into something like I<!@$~> 38 using Regexp::Common::profanity_us. 37 39 38 40 =head1 CONFIG … … 42 44 =item text_only 43 45 44 When set to 1, uses HTML::Parser to avoid replacing C<ttp://>inside45 HTML attributes. Defaults to 0.46 When set to 1, uses HTML::Parser to avoid replacing bad terms inside 47 HTML tags. 46 48 47 49 =back … … 49 51 =head1 AUTHOR 50 52 51 Matsuno Tokuhiro52 53 53 Tatsuhiko Miyagawa 54 54 55 55 =head1 SEE ALSO 56 56 57 L<Plagger>, L< HTML::Parser>57 L<Plagger>, L<Regexp::Common::profanity_us> 58 58 59 59 =cut
