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)
Updated by Ernesto Baschny about 19 years ago
Note that html_entity_decode() is only available in PHP >= 4.3.0. So I would be careful to use this.
Updated by Martin Kutschker over 18 years ago
Is this still an issue? Quite some time has passed since the bug has been submitted.
Updated by Christian Kuhn over 15 years ago
Resolved, no change required after three years without requested feedback.
Please reopen if this issue still exists.