Issue #20662: Argspec now is escaped in html output of pydoc.
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index 0b56f25..bfb0a03 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -956,7 +956,7 @@
         if not argspec:
             argspec = '(...)'
 
-        decl = title + argspec + (note and self.grey(
+        decl = title + self.escape(argspec) + (note and self.grey(
                '<font face="helvetica, arial">%s</font>' % note))
 
         if skipdocs: