Changeset 171

Show
Ignore:
Timestamp:
02/27/06 00:14:57
Author:
miyagawa
Message:
  • Added $entry->body_text, $entry->title_text and $feed->entry_text. Fixes #69
  • Added Plagger::Util utility class for functions like strip_html
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Entry.pm

    r127 r171  
    88use DateTime::Format::Mail; 
    99use Storable; 
     10use Plagger::Util; 
    1011 
    1112sub new { 
     
    7172} 
    7273 
     74sub title_text { 
     75    my $self = shift; 
     76    Plagger::Util::strip_html($self->title); 
     77} 
     78 
     79sub body_text { 
     80    my $self = shift; 
     81    Plagger::Util::strip_html($self->body); 
     82} 
     83 
    73841; 
    7485 
  • trunk/plagger/lib/Plagger/Feed.pm

    r79 r171  
    66 
    77use Digest::MD5 qw(md5_hex); 
     8use Plagger::Util; 
    89 
    910sub new { 
     
    4849} 
    4950 
     51sub title_text { 
     52    my $self = shift; 
     53    Plagger::Util::strip_html($self->title); 
     54} 
     55 
    50561;