Drupal aggregator feed

The only way I have found to fix weird characters (eg ampersands "&") appearing in the aggregator feed is to hack Drupal as follows (refer this):
if ( !function_exists('htmlspecialchars_decode') )
{
function htmlspecialchars_decode($text)
{
return strtr($text, array_flip(get_html_translation_table(HTML_SPECIALCHARS)));
}
}
// Resolve the item's title. If no title is found, we use up to 40
// characters of the description ending at a word boundary but not
// splitting potential entities.
if (!empty($item['TITLE'])) {
$title = htmlspecialchars_decode($item['TITLE'], ENT_QUOTES);
}
I don't have any experience submitting patches, when I know how to do it I will submit it as a patch.
- sean's blog
- Login or register to post comments
