Limited Support
Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.
We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!
Merry Christmas and Happy Holidays! 🎄
Hi Team,
I noticed a week ago a problem with a code embedded in the post. Parts of it disappears while trying to edit it
Example:
1. I'm adding to the post a code like
#include <sample.h>
2. Saving the post and it looks fine
3. Editing post and then I see a code like
#include
The part basically disappears
Other examples:
1. Adding code like that
aaa::bbb:ccc
2. Saving post
I see
aaaccc
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
Hi @czaban,
Please go to \wp-content\plugins\wpforo\wpf-includes\ open wpf-hooks.php, find
$post['body'] = htmlspecialchars($post['body']);
this code will be comented by default, make it uncomented.
also add this at the end of the line
, ENT_NOQUOTES);
So the code will look like this
$post['body'] = htmlspecialchars($post['body'], ENT_NOQUOTES);