[Webdev] escaping quotes in html
John P. Looney
john at antefacto.com
Thu Aug 2 12:30:37 IST 2001
Now I'm annoyed. I've spent the morning trying to work out someway of
keeping what's typed into a text input box as it was typed.
As in, if someone types;
"asdasd as" ASdasd " asdasd "' asd'
into an input box, if I put that straight out as html like;
<input type="text" name="box" value=""asdasd as" ASdasd " asdasd "' asd'">
It'll break. If I use backslashes, it'll break - html seems to ignore
them. Is there any way around it ?
Kate
--
When I say 'free', I mean 'free': free from bond, of chain or command:
to go where you will, even to Mordor, Saruman, if you desire. "
-- Gandalf, paraphrasing the choice between Free and Non-free software
More information about the Webdev
mailing list