Doc #69584 [Opn]: strip_tags: meaning of $allowable_tags reverted
| From: | cmb@php.net | Date: | Wed, 06 May 2015 21:38:22 +0000 |
| Subject: | Doc #69584 [Opn]: strip_tags: meaning of $allowable_tags reverted | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-12303@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69584&edit=1
ID: 69584
Updated by: cmb@php.net
Reported by: cmb@php.net
Summary: strip_tags: meaning of $allowable_tags reverted
Status: Open
Type: Documentation Problem
Package: Strings related
Operating System: *
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
I've noticed that the respective changelog entry is also in error.
FWIW: the behavioral change can be seen on
<http://3v4l.org/W5aEu>.
Previous Comments:
------------------------------------------------------------------------
[2015-05-06 14:21:15] cmb@php.net
Description:
------------
---
From manual page: http://www.php.net/function.strip-tags
---
The third note about the $allowable_tags parameter reverts its
meaning:
| In PHP 5.3.4 and later, you will also need to include the
| self-closing XHTML tag to strip these from str. For example, to
| strip both <br> and <br/>, you should use:
Instead of "strip", "preserved" or so should be used.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69584&edit=1