|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-02-20 22:15 UTC] tolkad dot freenode at gmail dot com
[2010-02-20 23:07 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sat Feb 14 14:00:01 2026 UTC |
Description: ------------ If there are allowed tags, strip_tags will wrap around tags greater than 1023 (PHP_TAG_BUF_SIZE) characters. If this is absolutely necessary it should at least be documented. Also, why does strip_tags strip null bytes and why isn't this documented? Reproduce code: --------------- <?php $str = "<a" . str_repeat(' ', 1021) . ">"; echo strip_tags($str, "<a>"); Expected result: ---------------- <a(1021 spaces)> Actual result: -------------- >