durusmail: quixote-users: Docstring for html.py
Docstring for html.py
Docstring for html.py
Patrick K. O'Brien
2002-05-22
The docstring for html.py says:



url_quote
---------

Use for quoting data to be included as part of a URL, for example:

    '' % url_quote(input)

Note that since href is an attribute, its value should usually be quoted
with value_quote.  To see why this is necessary, consider the URL:

    http://example.com/?a=1©=0

As a URL this is perfectly valid.  However, when placed in an HTML document
the string "©" should be interpreted as the copyright character.



Wouldn't the string "©" (with a trailing semicolon) be interpreted as
the copyright character? In addition, I find the entire Note
incomprehensible. Is it just me? :-(

---
Patrick K. O'Brien
Orbtech



reply