W3C home > Mailing lists > Public > www-html@w3.org > March 2003

Re: </textarea> in a textarea?

From: Roland Bluethgen <calocybe@web.de>
Date: Wed, 12 Mar 2003 04:29:04 +0100
Message-ID: <3E6EA980.3070408@web.de>
To: roy@webspinners.co.il
CC: www-html@w3.org

Roy Stav wrote:
 > I'm using php, and since I'm putting the contents of the page into
 > the textarea, the </textarea> tag appears inside the textarea after
 > the php is parsed.

The content of a <textarea>, like any other element content[1], is 
subject to the escaping rules for special characters: replace "<" by 
&lt;, ">" by &gt; and so on. This applies to the *entire* content, not 
only the string "</textarea>"!

[1] except of <script> and <style> content
Received on Tuesday, 11 March 2003 22:27:05 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:03 UTC