Good point!
Ok the field is POSTED as $reply_text and I do the following to it:
$reply_text = $_POST['frm_reply_text'];
$reply_text = addslashes($reply_text);
$reply_text=nl2br($reply_text);
$reply_text = wordwrap($reply_text, 150, "\n");
//strips all html tags from the string the user entered with <br/> and <br> as the only exception
$reply_text = strip_tags("$reply_text","<br><br/>");
//replace friendly html (i.e. with square brackets) with proper html
$reply_text = str_replace('[b]','<b>',"$reply_text");
$reply_text = str_replace('[B]','<b>',"$reply_text");
$reply_text = str_replace('[i]','<i>',"$reply_text");
$reply_text = str_replace('[I]','<i>',"$reply_text");
$reply_text = str_replace('[u]','<u>',"$reply_text");
$reply_text = str_replace('[U]','<u>',"$reply_text");
$reply_text = str_replace('[/b]','</b>',"$reply_text");
$reply_text = str_replace('[/i]','</i>',"$reply_text");
$reply_text = str_replace('[/u]','</u>',"$reply_text");
$reply_text = str_replace('[/B]','</b>',"$reply_text");
$reply_text = str_replace('[/I]','</i>',"$reply_text");
$reply_text = str_replace('[/U]','</u>',"$reply_text");
$reply_text = str_replace('[LINK]','<a class= "forumlink" href=" ',"$reply_text");
$reply_text = str_replace('[/LINK]','" target="_blank">Linky</a>',"$reply_text");
$reply_text = str_replace('[link]','<a class="forumlink" href=" ',"$reply_text");
$reply_text = str_replace('[/link]','" target="_blank">Linky</a>',"$reply_text");