#30728 [NEW]: Can't print a </textarea> tag into <textarea> tag
| From: | sa1230usr at libero dot it | Date: | Tue, 09 Nov 2004 05:55:03 +0000 |
| Subject: | #30728 [NEW]: Can't print a </textarea> tag into <textarea> tag | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-68823@lists.php.net to get a copy of this message | ||
From: sa1230usr at libero dot it
Operating system: Windows Xp
PHP version: 5.0.2
PHP Bug Type: Filesystem function related
Bug description: Can't print a </textarea> tag into <textarea> tag
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 bug report at http://bugs.php.net/?id=30728&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30728&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30728&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30728&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30728&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30728&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30728&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30728&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30728&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30728&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30728&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30728&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30728&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30728&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30728&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30728&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30728&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30728&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30728&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30728&r=mysqlcfg