|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-04-28 19:13 UTC] elixer@php.net
[2012-05-24 10:03 UTC] johannes@php.net
-Assigned To:
+Assigned To: johannes
-Block user comment: No
+Block user comment: Yes
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 13:00:01 2025 UTC |
When using strip_tags() with the optional conversion param, it still strips round brackets "()" from the input string. Example: <?php $allowed = "<a>"; $tag = "<a href=\"$PHP_SELF\" "; $tag .= "onClick=\"alert('Hello')\">click</a>"; printf("%s", strip_tags($tag, $allowed)); ?> results in <a href="whatever.php" onCLick="alert'Hello'">click</a> missing brackets---------------------^-----^ and leaves the <a> Tag unuseable.