Topic: htmLawed OOP error?
Have been trying to incorporate the htmLawed class for filtering tinyMCE input. Irrespective of the config settings, the filter get's confused with html tags:
For example:
<h2>This is</h2> <p>an <em>additional</em> test</p>
becomes:
<h2>This is an <em>additional<em> test</em></em></h2>
and with balance 0 ends up as:
<h2>This is<h2> <p>an <em>additional<em> test<p>
This appears with an unmodified php file onto a standard Apache/PHP config. Have systematically gone through various possibilities to rectify the issue but with no success. It seems that if the config variable is changed on the initial function call [hl($t, $C=1, $S=array())] this causes a permanent error even if the value is reset back to 1 - this also happens using the htmLawedTest.php page!! Suspect it may be something to do with $GLOBALS['C'], but the dumped value appears correct.
Any suggestions greatly appreciated.