Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
escaping only double quotes
- From: iapain at gmail.com (iapain)
- Subject: escaping only double quotes
- Date: Fri, 31 Aug 2007 16:43:45 -0000
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("'",
''')
- References:
- escaping only double quotes
- From: cesco
- escaping only double quotes
- Prev by Date: escaping only double quotes
- Next by Date: JavaScript
- Previous by thread: escaping only double quotes
- Next by thread: Looking for Delaunay triangulation module...
- Index(es):