In the first function (trimBody) there is a line that reads.
Code:
if ($tmp = strpos($theText,$s_cnt; $i++) {
etc.
Shouln't the equality operator "==" be used instead of the asignment operator "=" or am I worng in thinking this is s conditional statement?
There is no such thing as a stupid question, unless you ask it more than once :)