lets say $message contains some html code because a user typed some in for a message...
well, i dont want that html code to parse because it could possibly affect the dispaly of my site...
so...
$message = htmlspecialchars($message);
...appears to fix the problem
... but wait, $message contains <br /> tags that I DO want to be parsed as html.
so...
$message = preg_replace("'<br[[:space:]]/>'", "<br>", $message);
I think would do it... but instead, the output looks like this:
timmy!!!
;
; AH!
;
;
; TIMMY!
;
;
; <a href="timmy">timmy!</a>
What is causing the semicolons (😉 ?
Thanks in advance.
Rob