preserve ENCODING in text2rss() while decoding characters encoded by

latex2html
This commit is contained in:
ahaber
2014-01-30 13:51:50 +01:00
parent 275c1a41b5
commit 0092442d83
+2 -2
View File
@@ -3424,8 +3424,8 @@ class RSSDisplay {
// first strip HTML tags
$desc = strip_tags($desc);
// then decode characters encoded by latex2html
$desc= html_entity_decode($desc);
// then decode characters encoded by latex2html, preserve ENCODING
$desc = html_entity_decode($desc, ENT_COMPAT, ENCODING);
// some entities may still be here, we remove them
// we replace html entities e.g. é by nothing