Changeset 1818
- Timestamp:
- 11/08/06 07:27:46
- Files:
-
- trunk/plagger (modified) (previous)
- trunk/plagger/assets/plugins/Filter-EntryFullText/pmachine.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plagger/assets/plugins/Filter-EntryFullText/pmachine.pl
r966 r1818 2 2 sub handle { 3 3 my($self, $args) = @_; 4 $args->{content} =~ m! Powered by <a href="?http://www\.pmachine\.com/!si;4 $args->{content} =~ m!<a href="http://www\.pmachine\.com/">Powered by ExpressionEngine</a>!s; 5 5 } 6 6 7 7 sub extract { 8 8 my($self, $args) = @_; 9 if ($args->{content} =~ m!< h2 class="title">(?:.*?)</h2>(?:</a>)?(.*?)<\!--\n<rdf:RDF!s){9 if ($args->{content} =~ m!<div (?:id="content"|class="(?:entryBody|blogbody)")>(.*?)<div class="posted">!s){ 10 10 my $body = $1; 11 11 return "<div>$body</div>";
