#27374 [Opn]: strip_tags() does illegal strips

From: Date: Tue, 24 Feb 2004 07:57:59 +0000
Subject: #27374 [Opn]: strip_tags() does illegal strips
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-55433@lists.php.net to get a copy of this message
 ID:               27374
 Updated by:       derick@php.net
 Reported By:      andrey at itime dot ru
 Status:           Open
 Bug Type:         Unknown/Other Function
 Operating System: any
 PHP Version:      Irrelevant
 New Comment:

Actually your HTML code is what is broken here, you should use this:
<a href="&gt;">123</a>




Previous Comments:
------------------------------------------------------------------------

[2004-02-24 02:45:49] andrey at itime dot ru

Description:
------------
strip_tags don't accept quotes and double quotes inside html tags.



Reproduce code:
---------------
echo strip_tags('<a href=">">123</a>');

Expected result:
----------------
123

Actual result:
--------------
">123


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=27374&edit=1


Thread (4 messages)

« previous php.bugs (#55433) next »