SVN: zope.formlib/branches/adamg-3.4.1/src/zope/formlib/form.py quote too, that wrecks HTML too

Adam Groszer <[email protected]>
Newsgroups gmane.comp.web.zope.zope3.cvs
Message-ID <20091116164338.D3D9694184__21433.962081983$1258389833$gmane$org@cvs.zope.org>
Log message for revision 105725:
  quote too, that wrecks HTML too

Changed:
  U   zope.formlib/branches/adamg-3.4.1/src/zope/formlib/form.py

-=-
Modified: zope.formlib/branches/adamg-3.4.1/src/zope/formlib/form.py
===================================================================
--- zope.formlib/branches/adamg-3.4.1/src/zope/formlib/form.py	2009-11-16 16:32:45 UTC (rev 105724)
+++ zope.formlib/branches/adamg-3.4.1/src/zope/formlib/form.py	2009-11-16 16:43:38 UTC (rev 105725)
@@ -619,7 +619,7 @@
         label = zope.i18n.translate(self.label, context=self.form.request)
     return ('<input type="submit" id="%s" name="%s" value="%s"'
             ' class="button" />' %
-            (self.__name__, self.__name__, escape(label))
+            (self.__name__, self.__name__, escape(label, quote=True))
             )
 
 class action:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.