On Tue, Jan 17, 2006 at 08:40:57AM -0800, Titus Brown wrote:
> How do you escape "'"?
>
> e.g.
>
> <input type='text' name='blah' value='%(value)s'>
>
> where value="contains'quotes\"of all kinds"?
Python: quoted_value = cgi.escape(value, 1)
HTML : <input type="text" name="blah" value="%(quoted_value)s">
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETURN.
_______________________________________________
Quixote-users mailing list
[email protected]
http://mail.mems-exchange.org/mailman/listinfo/quixote-users