> Perhaps I don't understand the use of 'htmlentities' too well, but I
> like newlines to be retained/inserted into a db, and then if
> produce a new line from a textarea. However, I want the possibility of
> dangerous html excluded (hence the use of 'htmlentities').
> Is there some way of excluding '\n \r ' and other newline indicators
> 'htmlentities()'? Perhaps a combination of preg_match and something
> a bit brained-fried struggling with other errant parts of this code
> Any ideas how I could proceed?
What's wrong with
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php