Re: escaping only double quotes
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("'",
''')
.
Relevant Pages
- RE: Use of Variable in Sum
... "Jacob Skaria" wrote: ... Quotes represents string values.. ... Ampersands are used to combine variables OR strings... ... (microsoft.public.excel.programming) - RE: Use of Variable in Sum
... Thanks Sue. ... I have tried to explain a bit about strings and ampersands. ... Quotes represents string values.. ... (microsoft.public.excel.programming) - Re: DLookup syntax
... In the last argument, I removed the ampersands and the inner double quotes, ... leaving 'Primary'. ... (microsoft.public.access.formscoding) - Ghostscript readline eating octal escapes
... I am having a problem getting any sort of non-vanilla ascii ... In the program below, double quotes. ... Octal escapes are shown as the literal four characters, hex as well; ... /textarray numlines array def ... (comp.lang.postscript) - Re: ANN: TwinLisp - a new way of programming in Common Lisp
... You see dollar signs only in macro definitions. ... > (defun direct-slots (name) ... Then who put that huge box full of ampersands under the tree? ... def function{... ... (comp.lang.lisp) |
|