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-