table, etc tags in TEXTAREA
Help? I need to display (and allow user to edit) tags such as <table>,
<tr>, and <td> inside a textarea box. The problem is -- even though they
show up, and you can edit them, they screw up the formatting of my page.
It's weird. It does it in various browsers.
Is there some way to tell the browser they're just there to be edited?
Thanks for your help.
Re: table, etc tags in TEXTAREA
Ness Mountain wrote:
> Help? I need to display (and allow user to edit) tags such as <table>,
> <tr>, and <td> inside a textarea box. The problem is -- even though they
> show up, and you can edit them, they screw up the formatting of my page.
> It's weird. It does it in various browsers.
>
> Is there some way to tell the browser they're just there to be edited?
>
> Thanks for your help.
You CANNOT put HTML tags *inside* a text area...
<textarea><h1>hello world</h1><p>hi!</p></textarea>
....is totally illegal HTML. You need to find a different way of doing
it. As the name suggests, a textarea is for TEXT, not HTML tags. One
caveat; if you want to give the appearance of displaing HTML inside a
textarea, replace all of your < > with < and >. At least then it
wont wreck your page...
--
x theSpaceGirl (miranda)
# lead designer [at] http://www.dhnewmedia.com #
# remove NO SPAM to email, or use form on website #
Re: table, etc tags in TEXTAREA
Ness Mountain <SpammersTakeAHike_ness [at] willowmountain.com> wrote:
> Help? I need to display (and allow user to edit) tags such as <table>,
> <tr>, and <td> inside a textarea box. The problem is -- even though they
> show up, and you can edit them, they screw up the formatting of my page.
> It's weird. It does it in various browsers.
>
> Is there some way to tell the browser they're just there to be edited?
>
> Thanks for your help.
Have you tried escaping the <'s? > < & " etc..
If you don't it could be a problem if you ever wanted to edit textarea
tags within a textarea. %-|
Jamie
--
http://www.geniegate.com Custom web programming
guhzo_42 [at] lnubb.pbz (rot13) User Management Solutions