View Single Post
Old 10-12-2003, 05:01 PM   #11
Rolandks
Purple Mole
 
Rolandks's Avatar
 
Join Date: Sep 2003
Location: Kassel, Germany
Posts: 119
Hm okay, what is now the better solution for the future ?

Code:
//replace any group of blank characters by an unique space
$text = ereg_replace("[[:blank:]]+"," ",strip_tags($text));
OR
Code:
//replace any group of blank characters by an unique space
$text = preg_replace('/<.*>/sU', '', $text);
-Roland-
Rolandks is offline   Reply With Quote