#30728 [Opn->Bgs]: Can't print a </textarea> tag into <textarea> tag
| From: | tony2001@php.net | Date: | Tue, 09 Nov 2004 06:36:39 +0000 |
| Subject: | #30728 [Opn->Bgs]: Can't print a </textarea> tag into <textarea> tag | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-68827@lists.php.net to get a copy of this message | ||
ID: 30728
Updated by: tony2001@php.net
Reported By: sa1230usr at libero dot it
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: Windows Xp
PHP Version: 5.0.2
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
Not a bug, read about htmlspecialchars().
Previous Comments:
------------------------------------------------------------------------
[2004-11-09 06:55:02] sa1230usr at libero dot it
Description:
------------
When i read an html file with fread and inside that file there is a
<textarea> tag than isn't possible to print(echo) the variable filled
with fread inside another <textarea> tag cause the tag </textarea> in
the variable close the <textarea> tag where is going to be printed!
Reproduce code:
---------------
$MyText='<textarea>MyTest</TextArea><br><input type=text>Not into the
textarea tag!'
<textarea> echo $MyText;</textarea>
Expected result:
----------------
The variable $MyText should be fully showed inside the <textarea> tag
also if contain tags of the same type.
Actual result:
--------------
It happend that variable $MyText isn't fully printed into <textarea>
tag but it stop when is printed </textarea> tag.
The rest will be showed like normal html.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30728&edit=1