Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
escaping only double quotes
- From: fd.calabrese at gmail.com (cesco)
- Subject: escaping only double quotes
- Date: Fri, 31 Aug 2007 15:49:39 -0000
Hi, I have a string which is constructed like this: string = "Butler's 15\" TV" s = """my string goes here "%s" """ % string the single string, unfortunately, gets escaped which is something I want to avoid because I have to load the data into a database using the json format and I get an "invalid escape error" if the single quote is escaped. Is there a way to accomplish this? Thanks and regards Francesco
- Follow-Ups:
- escaping only double quotes
- From: iapain
- escaping only double quotes
- From: iapain
- escaping only double quotes
- Prev by Date: strings (dollar.cents) into floats
- Next by Date: Looking for Delaunay triangulation module...
- Previous by thread: JavaScript
- Next by thread: escaping only double quotes
- Index(es):