php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #68134 strip_tags note isn't valid for php version 5.3.4 & higher
Submitted: 2014-10-02 19:17 UTC Modified: 2015-09-02 14:52 UTC
From: korikulum at net dot hr Assigned: peehaa (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2014-10-02 19:17 UTC] korikulum at net dot hr
Description:
------------
The following note on the strip_tags page (http://php.net/manual/en/function.strip-tags.php) isn't valid for php version 5.3.4 & higher:

This parameter should not contain whitespace. strip_tags() sees a tag as a case-insensitive string between < and the first whitespace or >. It means that strip_tags("<br/>", "<br>") returns an empty string.

This has been fixed in version 5.3.4:
http://php.net/ChangeLog-5.php#5.3.4
https://bugs.php.net/bug.php?id=53319


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-05-06 14:15 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 [2015-05-06 14:15 UTC] cmb@php.net
Related to #69023.
 [2015-05-31 18:53 UTC] cmb@php.net
-Assigned To: cmb +Assigned To:
 [2015-09-02 14:52 UTC] peehaa@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: peehaa
 [2015-09-02 14:52 UTC] peehaa@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 18:01:28 2024 UTC