A critique of cgi.escape

Jon Ribbens jon+usenet at unequivocal.co.uk
Mon Sep 25 16:08:23 CEST 2006


In article <mailman.569.1159192888.10491.python-list at python.org>, Fredrik Lundh wrote:
>> There's nothing to say that cgi.escape should take them both into account
>> in the one function
> 
> so what exactly are you using cgi.escape for in your code ?

To escape characters so that they will be treated as character data
and not control characters in HTML.

>> What precisely do you think it would "break"?
> 
> existing code, and existing tests.

I'm sorry, that's not good enough. How, precisely, would it break
"existing code"? Can you come up with an example, or even an
explanation of how it *could* break existing code?



More information about the Python-list mailing list