From 6715fe7d9e239bffabf414c7a2d52041cc9a0b9a Mon Sep 17 00:00:00 2001 From: Sean Coates Date: Mon, 23 Feb 2004 23:30:30 +0000 Subject: [PATCH] Added a warning, see bug #27361 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@152197 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/strip-tags.xml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/reference/strings/functions/strip-tags.xml b/reference/strings/functions/strip-tags.xml index baf67ea427..152d7fc086 100644 --- a/reference/strings/functions/strip-tags.xml +++ b/reference/strings/functions/strip-tags.xml @@ -1,5 +1,5 @@ - + @@ -15,8 +15,7 @@ This function tries to return a string with all HTML and PHP tags - stripped from a given str. It errors on - the side of caution in case of incomplete or bogus tags. It uses + stripped from a given str. It uses the same tag stripping state machine as the fgetss function. @@ -29,6 +28,12 @@ and PHP 4.0b3. Since PHP 4.3.0, HTML comments are also stripped. + + + Because strip_tags does not actually validate the + HTML, partial, or broken tags can result in unwanted results. + +