Doc #69641 [Opn->Dup]: Incorrect note for strip_tags()
| From: | cmb@php.net | Date: | Fri, 15 May 2015 15:05:51 +0000 |
| Subject: | Doc #69641 [Opn->Dup]: Incorrect note for strip_tags() | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-12336@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69641&edit=1
ID: 69641
Updated by: cmb@php.net
Reported by: brian at brianhogg dot com
Summary: Incorrect note for strip_tags()
-Status: Open
+Status: Duplicate
Type: Documentation Problem
-Package: Documentation problem
+Package: Strings related
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Duplicate of bug #69584.
Previous Comments:
------------------------------------------------------------------------
[2015-05-15 14:57:10] brian at brianhogg dot com
Description:
------------
---
From manual page: http://www.php.net/function.strip-tags
---
The note documentation in the documentation for $allowed_tags reads:
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:
but that param is to allow, not to strip. It should probably read something like:
In PHP 5.3.4 and later, you will also need to include the self-closing XHTML tag to allow these in
str. For example, to allow both <br> and <br/>, you should use:
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69641&edit=1