note 102173 added to function.strip-tags

From: Date: Mon, 31 Jan 2011 18:46:55 +0000
Subject: note 102173 added to function.strip-tags
Groups: php.notes 
Request: Send a blank email to php-notes+get-176543@lists.php.net to get a copy of this message
IMO, the function should allow you to remove any tag that you specify. The structure could be something like this: strip_tags($string,$allow_or_remove_listed,$list) As an example: <?php $str = "<p><strong>This is a string.</strong> <a href="http://www.example.com/">Some Random Website</a>"; $str = strip_tags($str,"remove","<strong>"); echo $str; ?> would remove the <strong> tag. ---- Server IP: 192.41.42.26 Probable Submitter: 72.179.158.73 ---- Manual Page -- http://www.php.net/manual/en/function.strip-tags.php Edit -- https://master.php.net/note/edit/102173 Del: integrated -- https://master.php.net/note/delete/102173/integrated Del: useless -- https://master.php.net/note/delete/102173/useless Del: bad code -- https://master.php.net/note/delete/102173/bad+code Del: spam -- https://master.php.net/note/delete/102173/spam Del: non-english -- https://master.php.net/note/delete/102173/non-english Del: in docs -- https://master.php.net/note/delete/102173/in+docs Del: other reasons-- https://master.php.net/note/delete/102173 Reject -- https://master.php.net/note/reject/102173 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#176543) next »