Changeset 220

Show
Ignore:
Timestamp:
03/01/06 18:49:09
Author:
miyagawa
Message:

decode entities in strip_html. Fixes #82

Files:

Legend:

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

    r171 r220  
    44our @EXPORT_OK = qw( strip_html ); 
    55 
     6use HTML::Entities; 
     7 
    68sub strip_html { 
    79    my $html = shift; 
    810    $html =~ s/<[^>]*>//g; 
    9     $html
     11    HTML::Entities::decode($html)
    1012} 
    1113