note 104475 added to function.strip-tags

From: Date: Thu, 16 Jun 2011 20:12:20 +0000
Subject: note 104475 added to function.strip-tags
Groups: php.notes 
Request: Send a blank email to php-notes+get-180630@lists.php.net to get a copy of this message
If you want to strip ANSI escape color codes. <?php function strip_ansi($string) { return preg_replace('/\e\[[;?0-9]*[0-9A-Za-z]/', '', $string); } ?> ---- Server IP: 80.67.10.228 Probable Submitter: 85.228.18.85 ---- Manual Page -- http://www.php.net/manual/en/function.strip-tags.php Edit -- https://master.php.net/note/edit/104475 Del: integrated -- https://master.php.net/note/delete/104475/integrated Del: useless -- https://master.php.net/note/delete/104475/useless Del: bad code -- https://master.php.net/note/delete/104475/bad+code Del: spam -- https://master.php.net/note/delete/104475/spam Del: non-english -- https://master.php.net/note/delete/104475/non-english Del: in docs -- https://master.php.net/note/delete/104475/in+docs Del: other reasons-- https://master.php.net/note/delete/104475 Reject -- https://master.php.net/note/reject/104475 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#180630) next »