root/trunk/plagger/assets/plugins/filter-entryfulltext/asahi_com.pl

Revision 474 (checked in by miyagawa, 14 years ago)
Line 
1 sub handle {
2     my($self, $args) = @_;
3     $args->{entry}->link =~ qr!^http://www\.asahi\.com/!;
4 }
5
6 sub extract_body {
7     my($self, $args) = @_;
8     ( $args->{content} =~ /<!-- Start of Kiji -->(.*)<!-- End of Kiji -->/s )[0];
9 }
Note: See TracBrowser for help on using the browser.