You could write a simple escape function.
def escape(html):
"Return the given TEXT with ampersands, quotes and carets
encoded."
return html.replace('&', '&').replace('<',
'<').replace('>', '>').replace('"', '"').replace("'",
''')
--
http://mail.python.org/mailman/listinfo/python-list
> string = "Butler's 15\" TV"
> s = """my string goes here "%s" """ % string
Couldn't find anything wrong in
string = "Butler's 15\" TV"
s = "my string goes here %s" % string
--
http://mail.python.org/mailman/listinfo/python-list
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 "inval