Escaping Quotes in forms

admin

Administrator
Staff member
I need to generate forms which have double quotes in them as default<br />
values for text fields as in:<br />
<br />
How do I escape the quotes?? I need some HTML mechanism like:<br />
<br />
Enter a quoted string:<input name="qt" value="default is \"quoted\""><br />
<br />
<br />
Is there a way to do this??<!--content-->the only way I know of without using a serverside language is this<br />
<br />
<input type="text" name="a" value="&quot; &quot;"><!--content-->It may or may not help, but nesting quotes can usually be done by alternating single and double quotes...<br />
<br />
<input name='qt' value='default is "quoted"'><!--content-->
 
Back
Top