sean Mon Feb 23 18:30:31 2004 EDT
Modified files: /phpdoc/en/reference/strings/functions strip-tags.xml Log: Added a warning, see bug #27361 http://cvs.php.net/diff.php/phpdoc/en/reference/strings/functions/strip-tags.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc/en/reference/strings/functions/strip-tags.xml diff -u phpdoc/en/reference/strings/functions/strip-tags.xml:1.5 phpdoc/en/reference/strings/functions/strip-tags.xml:1.6 --- phpdoc/en/reference/strings/functions/strip-tags.xml:1.5 Tue Jan 27 11:01:45 2004 +++ phpdoc/en/reference/strings/functions/strip-tags.xml Mon Feb 23 18:30:30 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 --> <refentry id="function.strip-tags"> <refnamediv> @@ -15,8 +15,7 @@ </methodsynopsis> <para> This function tries to return a string with all HTML and PHP tags - stripped from a given <parameter>str</parameter>. It errors on - the side of caution in case of incomplete or bogus tags. It uses + stripped from a given <parameter>str</parameter>. It uses the same tag stripping state machine as the <function>fgetss</function> function. </para> @@ -29,6 +28,12 @@ and PHP 4.0b3. Since PHP 4.3.0, HTML comments are also stripped. </para> </note> + <warn> + <para> + Because <function>strip_tags</function> does not actually validate the + HTML, partial, or broken tags can result in unwanted results. + </para> + </warn> </para> <para> <example>