Vincent van Beveren wrote:
> bodyText transilates it into
> <input name=email type=text id=email>
>
> Is there anything i can do to fix this?
You need to escape it.
This is most easly done with regular expressions (I believe)
bodyText = bodyText.replace(/\"/g,"\\\"");
should work
That works if you already have the string. It doesn't do what the op is
wanting to do though. Try it out.
What the OP is wanting is to read the innerHTML and get the quoted value
back from the browser, which it is normalizing. To get the actual text
of it, with quotes and all, look into the HTTPRequestObject or the JAVA
component listed in the FAQ
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -
http://jibbering.com/faq/