I have noticed that people echo addslashes, the case when user writes a " or ' simbol. I think that no influence on "bad input", because the input is allredy in and its no matter whats outputs (some experienced coder will correct me if im vrong).
Why not just use:
PHP Code:
$text = htmlentities($text, ENT_QUOTES);
The point, back slash \' is ugly in forum texts.
Leave a comment: