--- mt-rssfeed.pl.orig Wed Dec 11 21:08:40 2002 +++ mt-rssfeed.pl Wed Apr 23 08:49:38 2003 @@ -282,11 +282,13 @@ if ($tag=~/^description/) { # entity encoding HTML is evil!!! # take our best shot at working with it. - $value=($value=~/&lt;/ && MT->VERSION<'2.50')?_decode_xml_fallback($value):decode_xml($value); + $value=decode_xml($value); remove_html($value) unless ($tag=~/encoded$/) } - # deal with 2.21's decode_xml bug - return MT->VERSION<'2.50'?_decode_xml_fallback($value):decode_xml($value); + # strip control-characters + my $spoo = decode_xml($value); + $spoo =~ s/[\x80-\x9F]//g; + return $spoo; } } return '';