|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-10-05 10:39 UTC] kraghuba at in dot ibm dot com
[2007-10-06 00:00 UTC] jani@php.net
[2007-10-08 11:01 UTC] rquadling@php.net
[2007-11-21 15:08 UTC] vrana@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Jan 07 06:00:01 2026 UTC |
Description: ------------ when a string with PHP tag(<?php ?>) is given as input to strip_tags() function, it strips off the entire given string including the tags. Whereas, the function should only strip the tags and not the text within the PHP block. As per the documentation, this seems to be non-documented behavior, is this expected? Reproduce code: --------------- <?php var_dump(strip_tags("<?php echo \"hello\" ?>")); ?> Expected result: ---------------- string(12) "echo "hello"" Actual result: -------------- string(0) ""