I noticed a week ago a problem with a code embedded in the post. Parts of it disappears while trying to edit it
1. I'm adding to the post a code like
2. Saving the post and it looks fine
3. Editing post and then I see a code like
The part basically disappears
1. Adding code like that
2. Saving post
I thought it's a problem with wpForo - Syntax Highlighter plugin I bought while I turned it off and the same is with a plain version of code formatting.
I've cleaned a wpForo cache, turned off/on other plugins installed - with no success.
I'm attaching screenshots to visualize the problem.
This is a very unfortunate problem as the code embedded loses parts of it and forum users who copy the code from the forum have lot's of problems as it's not complete.
EDIT: Actually it looks that this is a general problem with wpForo not mine only. I see in this post the same issue
Please just try to edit this post and see the red text in published and edit mode: aaa::bbb::ccc
also add this at the end of the line
So the code will look like this
$post['body'] = htmlspecialchars($post['body'], ENT_NOQUOTES);