From 0f41706acc230a03e241b302d46b552e801770d0 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Thu, 7 Apr 2005 22:46:55 +0000 Subject: - #19874: Fix aggregator escaping after check_plain bug - Fix bug in decode_entities() with double-escaped entities. --- modules/aggregator.module | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'modules/aggregator.module') diff --git a/modules/aggregator.module b/modules/aggregator.module index 51acc9374..0d7601db3 100644 --- a/modules/aggregator.module +++ b/modules/aggregator.module @@ -468,10 +468,6 @@ function aggregator_parse_feed(&$data, $feed) { } xml_parser_free($xml_parser); - // initialize the translation table: - $tt = array_flip(get_html_translation_table(HTML_SPECIALCHARS)); - $tt['''] = "'"; - /* ** We reverse the array such that we store the first item last, ** and the last item first. In the database, the newest item @@ -486,7 +482,7 @@ function aggregator_parse_feed(&$data, $feed) { // Prepare the item: foreach ($item as $key => $value) { // TODO: Make handling of aggregated HTML more flexible/configurable. - $value = strtr(trim($value), $tt); + $value = decode_entities(trim($value)); $value = strip_tags($value, '