Temporarily restored rss_unhtmlentities that was recently removed by Eloy.

Eloy, you may want to check this... The RSS client block was using this function.
This commit is contained in:
moodler
2006-01-05 06:51:46 +00:00
parent ef26f27869
commit fb5928bddd
+12
View File
@@ -424,6 +424,18 @@ function rss_print_form($act='none', $url='', $rssid='', $preferredtitle='', $co
print rss_get_form($act, $url, $rssid, $preferredtitle, $courseid);
}
/**
* Translates HTML special characters back to ASCII
* RSS feeds may have encoded html commands which we want to translate properly
* to display as intended rather than as source (html script visible in feed)
* This function taken from Simplog - www.simplog.net
*/
function rss_unhtmlentities($string) {
$trans_tbl = get_html_translation_table (HTML_ENTITIES);
$trans_tbl = array_flip ($trans_tbl);
return strtr ($string, $trans_tbl);
}
/**
* Prints or returns a form for managing rss feed entries.