Quoting HTML

Thomas Guettler zopestoller at thomas-guettler.de
Thu Dec 5 05:03:19 EST 2002


Hi!

cgi.escape() does not quote " or '

I think it would be nice if it would do
so, because this would allow quoting of attributes, too.

xml.sax.saxutils.quoteattr() can be used, too. But
it magicalley adds the quotes.

Is there a method in the standard library which
quotes " and ', too?

  thomas




More information about the Python-list mailing list