Index: Lib/Cookie.py =================================================================== --- Lib/Cookie.py (revision 68361) +++ Lib/Cookie.py (working copy) @@ -471,13 +471,14 @@ def js_output(self, attrs=None): # Print javascript + quotes_escaped = self.OutputString(attrs).replace('"','\\"') return """ - """ % ( self.OutputString(attrs), ) + """ % ( quotes_escaped, ) # end js_output() def OutputString(self, attrs=None):