Results 1 to 2 of 2
Thread: [php]Filtering a form input
Oct 20, 2000, 15:50 #1
- Join Date
- Oct 2000
- 0 Post(s)
- 0 Thread(s)
I want to filter a form input for html/php tags.
So far I've got this.
$text = "<test> after a couple of spaces";
echo nl2br(ereg_replace(" ", " ", strip_tags($text)));
If the $text contains a " (double quot charachter) the script will produce a parse error. Does someone know a solution for this?
Thanx in advance