diff options
Diffstat (limited to 'rhimport-rs')
-rwxr-xr-x | rhimport-rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rhimport-rs b/rhimport-rs index 099b30b..fc9454a 100755 --- a/rhimport-rs +++ b/rhimport-rs @@ -31,6 +31,7 @@ use XML::Feed::Enclosure; use File::Fetch; use IO::Handle; use IPC::Open3; +use HTML::Entities; use lib '/usr/local/share/rhimport/'; use rhimport; @@ -111,8 +112,8 @@ while(1) { my $ff = File::Fetch->new(uri => $entry->enclosure->url); next unless (uc($ff->output_file) =~ $bdfile); # file not from correct day - my $sum_title = $entry->title; - my $sum_text = $entry->content->body; + my $sum_title = decode_entities($entry->title); + my $sum_text = decode_entities($entry->content->body); my $current_file = `cat $STAT_FILE`; if($current_file eq $ff->output_file) { |