svn: /phpdoc/en/trunk/reference/strings/functions/ strip-tags.xml

From: Date: Wed, 02 Sep 2015 14:22:17 +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-13684@lists.php.net to get a copy of this message
peehaa Wed, 02 Sep 2015 14:22:17 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=337708 Log: Fixed remark about > 5.4.3 ignoring self closing tags in the allowable_tags param 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 2015-09-02 13:10:53 UTC (rev 337707) +++ phpdoc/en/trunk/reference/strings/functions/strip-tags.xml 2015-09-02 14:22:17 UTC (rev 337708) @@ -55,16 +55,17 @@ </note> <note> <para> - In PHP 5.3.4 and later, you will also need to include the self-closing - XHTML tag to strip these from <parameter>str</parameter>. For example, - to strip both <literal>&lt;br&gt;</literal> and + In PHP 5.3.4 and later, self-closing + XHTML tags are ignored and only non-self-closing tags should be used in + <parameter>str</parameter>. For example, + to allow both <literal>&lt;br&gt;</literal> and <literal>&lt;br/&gt;</literal>, you should use: </para> <informalexample> <programlisting role="php"> <![CDATA[ <?php -strip_tags($input, '<br><br/>'); +strip_tags($input, '<br>'); ?> ]]> </programlisting> @@ -98,8 +99,8 @@ <row> <entry>5.3.4</entry> <entry> - <function>strip_tags</function> no longer strips self-closing XHTML - tags unless the self-closing XHTML tag is also given in + <function>strip_tags</function> ignores self-closing XHTML + tags in <parameter>allowable_tags</parameter>. </entry> </row>

« previous php.doc.cvs (#13684) next »