Jon Ribbens wrote: > In article <[EMAIL PROTECTED]>, 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?
Is that so hard to see? If cgi.escape replaced "'" with an entity reference, code that expects it not to do so would break. Georg -- http://mail.python.org/mailman/listinfo/python-list