[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 "<" 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 "&lt;" would do it, huh? What a PITA...lol)
&lt; is indeed the correct way of doing that. And if you wanted to
display that, you'd need to use '&amp;lt;'. That's just how HTML
entities work.
More information about the thelist
mailing list