svn: /phpdoc/en/trunk/reference/strings/functions/ strip-tags.xml
| From: | Jakub Vrana | Date: | Thu, 10 Feb 2011 16:09:22 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/strings/functions/ strip-tags.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-7746@lists.php.net to get a copy of this message | ||
vrana Thu, 10 Feb 2011 16:09:22 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=308213
Log:
Beware slashes (doc bug #53319)
Bug: http://bugs.php.net/53319 (To be documented)
strip_tags() may strip '<br />' incorrectly
Changed paths:
U phpdoc/en/trunk/reference/strings/functions/strip-tags.xml
Modified: phpdoc/en/trunk/reference/strings/functions/strip-tags.xml
===================================================================
--- phpdoc/en/trunk/reference/strings/functions/strip-tags.xml 2011-02-10 15:58:04 UTC (rev 308212)
+++ phpdoc/en/trunk/reference/strings/functions/strip-tags.xml 2011-02-10 16:09:22 UTC (rev 308213)
@@ -45,6 +45,16 @@
can not be changed with <parameter>allowable_tags</parameter>.
</para>
</note>
+ <note>
+ <para>
+ This parameter should not contain whitespace.
+ <function>strip_tags</function> sees a tag as a case-insensitive
+ string between <literal><</literal> and the first whitespace or
+ <literal>></literal>. It means that
+ <literal>strip_tags("<br/>",
"<br>")</literal> returns an
+ empty string.
+ </para>
+ </note>
</listitem>
</varlistentry>
</variablelist>