View Single Post
Old 10-12-2003, 05:32 PM   #12
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. My personal preference would be to use
PHP Code:
$text ereg_replace("[[:blank:]]+"," ",eregi_replace("<[^>]*>","",$text)); 
Of the two choices you mentioned, I would modify and choose
PHP Code:
$text ereg_replace("[[:blank:]]+"," ",preg_replace('/<.*>/sU'''$text)); 
It seems strip_tags is more lenient now than in older PHP versions.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote