Re: </textarea> in a textarea?

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