note 68435 added to function.strip-tags

From: Date: Thu, 27 Jul 2006 00:07:38 +0000
Subject: note 68435 added to function.strip-tags
Groups: php.notes 
Request: Send a blank email to php-notes+get-115232@lists.php.net to get a copy of this message
Here's a fun one .. To ALLOW the XHTML tag <br /> ... you have to allow <br> .. example: $foo="test<br />test2"; strip_tags($foo,"<br />"); // returns testtest2 strip_tags($foo,"<br>"); // returns test<br />test2 ---- Server IP: 216.235.15.211 Probable Submitter: 69.194.75.95 ---- X-Spam-Status: No, hits=3.3 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, HTML_MESSAGE autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.strip-tags.php Edit -- http://master.php.net/note/edit/68435 Del: integrated -- http://master.php.net/note/delete/68435/integrated Del: useless -- http://master.php.net/note/delete/68435/useless Del: bad code -- http://master.php.net/note/delete/68435/bad+code Del: spam -- http://master.php.net/note/delete/68435/spam Del: non-english -- http://master.php.net/note/delete/68435/non-english Del: in docs -- http://master.php.net/note/delete/68435/in+docs Del: other reasons-- http://master.php.net/note/delete/68435 Reject -- http://master.php.net/note/reject/68435 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#115232) next »