|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-10-06 10:12 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 09:00:01 2025 UTC |
Description: ------------ strip_tags() doesn't respect the given allowable tag. for example var_dump(strip_tags("<html>Hello World</html>", "<<html>>") ); given the allowable tag as "<<html>>" allows the <html> tag which, i think is not desirable. <<html>> is not same as <html>. Reproduce code: --------------- <?php var_dump( strip_tags("<html>Hello World</html>", "<<html>>") ); ?> Expected result: ---------------- string(11) "Hello World" Actual result: -------------- string(24) "<html>Hello World</html>"