note 68787 deleted from function.strip-tags by danbrown

From: Date: Sun, 17 May 2009 15:59:10 +0000
Subject: note 68787 deleted from function.strip-tags by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-154731@lists.php.net to get a copy of this message
Note Submitter: metric at 152 dot org ---- I tried using the strip_selected_tags function that salavert created. It works really well for one line text, but if you have hard returns in the text it can't find the other tag. I altered the line where it shifts the text into a variable to replace on OS line returns. $text = preg_replace("/\r\n|\n|\r/","",array_shift($args));

« previous php.notes (#154731) next »