#14455html entities getting borked at rendering
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)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Related issues 1
History 4
-
Ernesto Baschny commented 11/10/05, 19:19
-
Martin Kutschker commented 04/29/06, 21:06
Is this still an issue? Quite some time has passed since the bug has been submitted.
-
Christian Kuhn commented 05/30/09, 21:15
Resolved, no change required after three years without requested feedback.
Please reopen if this issue still exists.
-
Benni Mack changed status
ResolvedClosed 10/02/18, 12:32
Note that html_entity_decode() is only available in PHP >= 4.3.0. So I would be careful to use this.