MyBB Community Forums

Full Version: HTML entities after conversion
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I have in my MyBB some HTML entitites I can't get rid off.
"
&
#8211; and so on.
How I can get rid of them. I tought that if everthing is UTF8 then all be ok, but no.
More info? Link?
It is as simple as that.
If you look at the tables on this page then lot of chars what are called Entity names or Entity numbers, arent encoded to normal chars.
http://www.w3schools.com/tags/ref_entities.asp

In XMB the database was with same entities, but in forum was everything normal.

At the moment I can't give you the link because it is on my localhost.
Is it possible, that MyBB can't simply read html entities from database while other software can?
Like HTML in posts? Because if so html is disabled in posts by default.
I didn't knew these aer called HTML entities, google told me.
But it seems, that its not regular encoding problem.
I think it's a bug in the merge system, I seem to remember something similar when I converted from phpBB.

You should be able to edit them out though, what do you mean by "can't get rid of"?
You converted from XMB? I thought Ryan removed the XMB module from the 1.6 Merge System. Regardless, yes this is from not being passed through the unhtmlentities() function during the merge processing. You can write a script that will remove them from your posts if you want.
Got my converted forum up again.
I digged a bit and found out that problem is only in thread names and aren't too many and might be possible to fix manually.

I have vivid example for you how thread name in databases are exact matches, but displayed results are different by software.
XMB:
http://www.para-web.org/viewthread.php?tid=124
MyBB:
http://www.para-web.org/mybb/showthread.php?tid=80

Thread name : Igor Volke - \"Ufo päevikud\"

If these " things are in post messages then it luckily appears ok for reader (as ").
We're actually aware this is the case with some boards. I can write a quick fix script for you tomorrow if you'd like. Maybe tonight. Not right now though, I've got company Smile
Pages: 1 2