php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #69023 Documentation problem
Submitted: 2015-02-10 10:18 UTC Modified: 2015-02-19 23:26 UTC
From: gruzintsev at gmail dot com Assigned: aharvey (profile)
Status: Closed Package: Website problem
PHP Version: 5.5Git-2015-02-10 (snap) OS: ubuntu
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: gruzintsev at gmail dot com
New email:
PHP Version: OS:

 

 [2015-02-10 10:18 UTC] gruzintsev at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.strip-tags
---

This page exist:
"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."

But
strip_tags("<br/>", "<br>") return '<br/>'


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-02-19 23:25 UTC] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=335964
Log: Fix strip_tags() documentation around XHTML allowable tags.

Fixes doc bug #69023 (Documentation problem).
 [2015-02-19 23:26 UTC] aharvey@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: aharvey
 [2015-02-19 23:26 UTC] aharvey@php.net
The fix for this bug has been committed. Since the websites are not directly
updated from the repository, the fix might need some time to spread
across the globe to all mirror sites, including PHP.net itself.

Thank you for the report, and for helping us make PHP.net better.

This looks like it was part of the fallout from bug #53319 — the documentation that was committed there was misleading.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 03:01:29 2024 UTC