A critique of cgi.escape

Jon Ribbens jon+usenet at unequivocal.co.uk
Tue Sep 26 09:19:33 EDT 2006


In article <mailman.672.1159275735.10491.python-list at python.org>, Fredrik Lundh wrote:
>> This has nothing to do with character encodings.
> 
> it has *everything* to do with encoding of existing data into HTML
> so it can be safely transported to, and recreated by, an HTML-aware
> client.

I can't tell if you're disagreeing or not. You escape the character
"<" as the sequence of characters "<", for example, because
otherwise the HTML user agent will treat it as the start of a tag and
not as character data. You will notice that the character encoding is
utterly irrelevant to this.

> does the word "information set" mean anything to you?

You would appear to be talking about either game theory, or XML,
neither of which have anything to do with HTML.



More information about the Python-list mailing list