@Slavik was this a thread title? Kinda need to know where this appeared to be able to do anything with it.
PHP manual on htmlspecialchars_decode said:The converted entities are: &, " (when ENT_NOQUOTES is not set), ' (when ENT_QUOTES is set), < and >.
htmlspecialchars_decode
doesn't do what we think it does.html_entity_decode
works for me. I'm going to use $value = html_entity_decode(htmlspecialchars_decode(strval($value)), ENT_QUOTES, 'UTF-8');
in place of both instances of $value = htmlspecialchars_decode(strval($value));
and see how that works out./src/addons/XFI/Import/Importer/vBulletin.php
(and other files where applicable) and post back with a diff once I've successfully imported everything without any more issues.This seems redundant. "htmlspecialchars_decode" is a subset of "html_entity_decode". You don't need both.I'm going to use$value = html_entity_decode(htmlspecialchars_decode(strval($value)), ENT_QUOTES, 'UTF-8');
[...]
src/XF/Import/Data/EntityEmulator.php
and src/addons/XFI/Import/Importer/vBulletin.php
&#
exists in the database in any column in any table other than intentional entities (e.g. posts where we are explaining the difference between a character and an entity, so the closing ; was omitted on purpose), or entities that were broken in vBulletin so the fault is not in XF2.Yes it is. Database collation is latin1_swedish_ci (old MySQL default) and language charset is ISO-8859-1.I'm wondering why you have to HTML-decode BBCode-enabled database columns (post messages, conversation messages, signatures, and edit history texts). I didn't have to HTML-decode them. But maybe that's because my vB4 forum was already using UTF-8. Is your old vBulletin forum stil using ISO-8859-*?
We use essential cookies to make this site work, and optional cookies to enhance your experience.