|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-01-19 04:39 UTC] dan at freelancer dot net
The following code prints "!" (without the quotes):
print strip_tags('<IMG ALT="Bang Not Stripped!">');
I would expect it to print nothing.
Same thing happens here:
print strip_tags('<AREA ALT="Bang Not Stripped!">');
Here is an example copied from the command line:
[dan@192 v008]$ php
<?
print strip_tags('<IMG ALT="Bang Not Stripped!">') . "\n";
?>
!
[dan@192 v008]$
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 03:00:01 2025 UTC |
Tried the same using PHP 4.0.6 and did not get the problem: [admin@labworks ukshopsearch]$ php <? print strip_tags('<IMG ALT="Bang Not Stripped!">') . "\n"; ?> X-Powered-By: PHP/4.0.6 Content-type: text/html [admin@labworks ukshopsearch]$