Hey there,

str.replace('"', '\\"').replace("'", "\\'")

HTH,  jbar
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to