Forums

disable html code in textarea

bobjones 30 Jun, 2008
I have a textarea box,
<textarea name="body" rows=10 cols=40> .
How do I disable the user of the form from putting in html code in the text box?

Thanks!
GreyHead 30 Jun, 2008
Hi bobjones,

You don't I'm afraid - you just filter it out on submission. Though I guess that it might be possible to do something with JavaScript???

Bob
bobjanes - near match there :-)
This topic is locked and no more replies can be posted.