Browse Source

preserve ENCODING in text2rss() while decoding characters encoded by

latex2html
pull/10/head
ahaber 12 years ago
parent
commit
0092442d83
  1. 4
      bibtexbrowser.php

4
bibtexbrowser.php

@ -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
$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 // 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

Loading…
Cancel
Save