Bug #14455
closedhtml entities getting borked at rendering
0%
Description
Html entities may be stored in the field 'fulltextdata' of the indexf_fulltext table. They will be parsed by some htmlspecialchars() function before being rendered in the html page.
ie: we store some à in mysql and it become à
I resolved the problem with this ugly hack :
In class.indexer.php (near line 1300), replace
$fields = array(
'phash' => $this->hash['phash'],
'fulltextdata' => implode($this->contentParts,' ')
);
by
$fields = array(
'phash' => $this->hash['phash'],
'fulltextdata' => html_entity_decode(implode($this->contentParts,' '), ENT_QUOTES)
);
(issue imported from #M618)