Added a warning, see bug #27361

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@152197 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Sean Coates 2004-02-23 23:30:30 +00:00
parent 43cdcf5fe0
commit 6715fe7d9e

View file

@ -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>