Hello,
I'm having a compatibility issue between
HTML Editor and
Spam Solution Plugin Badwords filter.
While the
BANwords feature works perfectly, the
BADwords one, does not.
If I disable the HTML Editor, everything works as it should.
In my theme (
\oc-content\themes\mcfly\parts\item\details.php -> details.php replaces
item.php) I have the following:
<?php if (function_exists('html_editor_description')) {
if (html_editor_description() != '') {
echo html_editor_description();
} else {
echo osc_item_description();
}
} else {
echo osc_item_description();
}
?>
This function outputs the item description modified by the HTML Editor.
Where/how could we insert this check, for it to work?
<?php if (function_exists('spam_clear_description')) { echo spam_clear_description(); } else { echo osc_item_description(); } ?>
For example: if the description text has a bad word in it, echo html_editor_description minus the bad word, else echo html_editor_description.
Any suggestions?
Thanks!