Doc #69584 [Com]: strip_tags: meaning of $allowable_tags reverted
| From: | peehaa@php.net | Date: | Wed, 02 Sep 2015 14:53:22 +0000 |
| Subject: | Doc #69584 [Com]: strip_tags: meaning of $allowable_tags reverted | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-12704@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
Comment by: peehaa@php.net
Reported by: cmb@php.net
Summary: strip_tags: meaning of $allowable_tags reverted
Status: Closed
Type: Documentation Problem
Package: Strings related
Operating System: *
PHP Version: Irrelevant
Assigned To: peehaa
Block user comment: N
Private report: N
New Comment:
Sorry. I meant:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Previous Comments:
------------------------------------------------------------------------
[2015-09-02 14:32:57] peehaa@php.net
The fix for this bug has been committed.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2015-09-02 14:32:30] peehaa@php.net
You are right Chris.
Self-closing tags in the allowable_tags param are simply ignored and non-self-closing tags also
preserve self-closing tags as it should.
------------------------------------------------------------------------
[2015-09-02 00:34:45] cmb@php.net
Related To: Bug #70402
------------------------------------------------------------------------
[2015-07-26 13:37:39] chris at ocportal dot com
I found this too. As far as I can tell this note, and the note in the changelog, are 100% nonsense.
The parameter is for allowable, not preserved.
But also, it doesn't seem to have any truth whatsoever to it.
echo strip_tags('<br><br />','<br>');
produces "<br><br />".
echo strip_tags('<br><br />','');
produces "".
i.e. self-closing is not a consideration at any point.
------------------------------------------------------------------------
[2015-05-15 15:05:51] cmb@php.net
Related To: Bug #69641
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=69584
--
Edit this bug report at https://bugs.php.net/bug.php?id=69584&edit=1