[thelist] Escaping "</textarea>"

Simon Willison cs1spw at bath.ac.uk
Mon Dec 22 16:52:16 CST 2003


Tab Alleman wrote:
> It worked...I'll be dammed.
> 
> Now of course, this begs the question how would I get a textarea to
> contain "&lt;" as a literal string of characters and not have it display
> a "<", but I don't want rocks thrown at me, so I won't ask.  : )
> (actually, I suppose "&amp;lt;" would do it, huh?  What a PITA...lol)

&amp;lt; is indeed the correct way of doing that. And if you wanted to 
display that, you'd need to use '&amp;amp;lt;'. That's just how HTML 
entities work.


More information about the thelist mailing list