Message25847
WWW:
escape( s[, quote])
Convert the characters "&", "<" and ">" in string s
to HTML-safe sequences. Use this if you need to display
text that might contain such characters in HTML. If the
optional flag quote is true, the double-quote character
(""") is also translated; this helps for inclusion in
an HTML attribute value, as in <A HREF="...">. If the
value to be quoted might include single- or
double-quote characters, or both, consider using the
quoteattr() function in the xml.sax.saxutils module
instead.
pydoc
cgi.escape = escape(s, quote=None)
Replace special characters '&', '<' and '>' by SGML
entities.
why? ;(
moreover pydoc doesn't even say what quote is!! |
|
Date |
User |
Action |
Args |
2007-08-23 14:33:16 | admin | link | issue1243553 messages |
2007-08-23 14:33:16 | admin | create | |
|