View Single Post
Old 10-13-2003, 07:58 AM   #15
Rolandks
Purple Mole
 
Rolandks's Avatar
 
Join Date: Sep 2003
Location: Kassel, Germany
Posts: 119
Quote:
Originally posted by Charter
PHP Code:
$text ereg_replace("[[:blank:]]+"," ",preg_replace('/<.*>/sU'''$text)); 
It seems strip_tags is more lenient now than in older PHP versions.
NO. This doesn´t work in the future! See Comment from /manute/.

This is quite expected behaviour. The SGML specification doesn't allow whitespaces to appear right after the less than sign.: http://bugs.php.net/bug.php?id=25730

-Roland-
Rolandks is offline   Reply With Quote