You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/web/howto/web-in-60/handling-posts.rst
+6-6
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ understand the possible negative consequences.
31
31
32
32
33
33
As usual, we start with some imports. In addition to the Twisted imports,
34
-
this example uses the ``cgi`` module to `escape user-enteredcontent <http://en.wikipedia.org/wiki/Cross-site_scripting>`_ for inclusion in the output.
34
+
this example uses the ``html`` module to `escape user-enteredcontent <http://en.wikipedia.org/wiki/Cross-site_scripting>`_ for inclusion in the output.
35
35
36
36
37
37
@@ -44,7 +44,7 @@ this example uses the ``cgi`` module to `escape user-enteredcontent <http://en.w
44
44
from twisted.web.resource import Resource
45
45
from twisted.internet import reactor, endpoints
46
46
47
-
importcgi
47
+
importhtml
48
48
49
49
50
50
@@ -82,7 +82,7 @@ method will allow it to accept ``POST`` requests:
0 commit comments