This is the input of a <textarea>. I don't suppose there is an easier
way of doing this?
Advertising
$mydata->KW = str_replace("\r", "", $mydata->KW);
$mydata->KW = str_replace("\n", "<br>", $mydata->KW);
$mydata->KW = str_replace("<br><br>", "<p>", $mydata->KW);
What does htmlspecialchars do exactly?
Yes I've read the docs, but didn't really follow.
An email post & reply would be real helpful :)
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]