note 70175 added to function.strip-tags
| From: | pierresyraud at hotmail dot com | Date: | Thu, 05 Oct 2006 19:43:33 +0000 |
| Subject: | note 70175 added to function.strip-tags | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-118099@lists.php.net to get a copy of this message | ||
A function inverse of, for strip any text and keep html tags !!!
function strip_text($a){
$i=-1;$n='';$ok=1;
while(isset($a{++$i})){
if($ok&&$a{$i}!='<'){continue;}
elseif($a{$i}=='>'){$ok=1;$n.='>';continue;}
elseif($a{$i}=='<'){$ok=0;}
if(!$ok){$n.=$a{$i};}}
return $n;}
----
Server IP: 195.221.21.36
Probable Submitter: 82.226.174.57
----
Manual Page -- http://www.php.net/manual/en/function.strip-tags.php
Edit -- https://master.php.net/note/edit/70175
Del: integrated -- https://master.php.net/note/delete/70175/integrated
Del: useless -- https://master.php.net/note/delete/70175/useless
Del: bad code -- https://master.php.net/note/delete/70175/bad+code
Del: spam -- https://master.php.net/note/delete/70175/spam
Del: non-english -- https://master.php.net/note/delete/70175/non-english
Del: in docs -- https://master.php.net/note/delete/70175/in+docs
Del: other reasons-- https://master.php.net/note/delete/70175
Reject -- https://master.php.net/note/reject/70175
Search -- https://master.php.net/manage/user-notes.php