def _escape(self, data): return ', '.join(['%s="%s"' % (key, cgi.escape(value, True)) for key, value in data.items()])