I've found a problem with this addon with the TinyMCE Quattro addon or any others addons that will use json string in the html code and when this json string has a single quote in it.
This error is coming from the post render templates modification of this addon. More precisely with the templates "thread_online & thread_view" modifications. It is caused by this code:
PHP:
$content = mb_convert_encoding($content, 'UTF-8', "HTML-ENTITIES");
I've tested two possible workarounds:
First one, replace the code with:
PHP:
$content = mb_convert_encoding(
htmlentities(
$content,
ENT_COMPAT,
'UTF-8'
),
'UTF-8',
"HTML-ENTITIES"
);
Second one, replace the code with:
PHP:
$content = htmlspecialchars_decode(utf8_decode(htmlentities($content, ENT_COMPAT, 'UTF-8')));
I haven't made further tests. I don't know if your addon will still work with these replacements. All I know is that your js requests doesn't have any errors with them.
To reproduce the bug with TinyQuattro, just add a smiley with inside its key a single quote, like the cry one :'(