preserve ENCODING in text2rss() while decoding characters encoded by
latex2html
This commit is contained in:
+2
-2
@@ -3424,8 +3424,8 @@ class RSSDisplay {
|
|||||||
// first strip HTML tags
|
// first strip HTML tags
|
||||||
$desc = strip_tags($desc);
|
$desc = strip_tags($desc);
|
||||||
|
|
||||||
// then decode characters encoded by latex2html
|
// then decode characters encoded by latex2html, preserve ENCODING
|
||||||
$desc= html_entity_decode($desc);
|
$desc = html_entity_decode($desc, ENT_COMPAT, ENCODING);
|
||||||
|
|
||||||
// some entities may still be here, we remove them
|
// some entities may still be here, we remove them
|
||||||
// we replace html entities e.g. é by nothing
|
// we replace html entities e.g. é by nothing
|
||||||
|
|||||||
Reference in New Issue
Block a user