#50664 [Opn->Bgs]: Documentation should more clearly list actual behavior
| From: | degeberg@php.net | Date: | Thu, 07 Jan 2010 11:24:24 +0000 |
| Subject: | #50664 [Opn->Bgs]: Documentation should more clearly list actual behavior | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-3644@lists.php.net to get a copy of this message | ||
ID: 50664
Updated by: degeberg@php.net
Reported By: deltascrewyoumail2 at spamplz dot hmx dot de
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
Operating System: Linux
PHP Version: Irrelevant
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
The manual already says that it expects syntactically correct input.
Your input is not valid because in HTML the < is a special character
that has to be replaced with the HTML entity <.
Previous Comments:
------------------------------------------------------------------------
[2010-01-05 00:09:33] deltascrewyoumail2 at spamplz dot hmx dot de
required field
------------------------------------------------------------------------
[2010-01-05 00:04:37] deltascrewyoumail2 at spamplz dot hmx dot de
Description:
------------
The Documentation for strip_tags() should mention that the function
does not actually look for any html or php Tags but actually just
searches for the "<" sign and removes everything from that Position
until it encounters a ">" sign. If there is no ">" in the String the
whole string will be cut from the Position of the "<" sign.
Reproduce code:
---------------
---
From manual page: function.strip-tags
---
<?php
$text = "This text has no HTML or PHP Tags and is <50 characters in
total length but it wont be listed!";
echo strip_tags($text) . '<br/>';
$text = "This Text <span>Text has HTML Tags</span> and will be listed
correctly.";
echo strip_tags($text);
?>
Expected result:
----------------
Both Text Variables to be returned completely with the exception of the
<span> and </span> which are html tags. But thats another issue which I
doubt will be fixed. So the Added Note in the Documentation should
suffice.
Actual result:
--------------
This text has no HTML or PHP Tags and is
This Text Text has HTML Tags and will be listed correctly.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50664&edit=1