durusmail: quixote-users: urllib.quote() and cgi.escape()
urllib.quote() change in 2.4.2
2006-01-16
2006-01-17
2006-01-17
2006-01-17
urllib.quote() and cgi.escape()
2006-01-17
2006-01-19
2006-01-20
2006-01-20
2006-01-23
2006-01-24
2006-01-26
2006-01-26
2006-01-27
2006-01-17
urllib.quote() and cgi.escape()
Oleg Broytmann
2006-01-17
On Tue, Jan 17, 2006 at 08:40:57AM -0800, Titus Brown wrote:
> How do you escape "'"?
>
> e.g.
>
> 
>
> where value="contains'quotes\"of all kinds"?

Python: quoted_value = cgi.escape(value, 1)

HTML  : 

Oleg.
--
     Oleg Broytmann            http://phd.pp.ru/            phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.
reply