Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
9cb1c75c
Commit
9cb1c75c
authored
Jul 19, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document new 'quote' flag to cgi.escape().
parent
cbfffe86
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
Doc/lib/libcgi.tex
Doc/lib/libcgi.tex
+5
-3
Doc/libcgi.tex
Doc/libcgi.tex
+5
-3
No files found.
Doc/lib/libcgi.tex
View file @
9cb1c75c
...
...
@@ -219,10 +219,12 @@ content-type and a dictionary of parameters.
HTML.
\end{funcdesc}
\begin{funcdesc}
{
escape
}{}
: convert the characters ``
\code
{
\&
}
'', ``
\code
{
<
}
'' and ``
\code
{
>
}
'' to HTML-safe
\begin{funcdesc}
{
escape
}{
s
\optional
{
\,
quote
}}
: convert the characters
``
\code
{
\&
}
'', ``
\code
{
<
}
'' and ``
\code
{
>
}
'' in string
\var
{
s
}
to HTML-safe
sequences. Use this if you need to display text that might contain
such characters in HTML. To translate URLs for inclusion in the HREF
attribute of an
\code
{
<A>
}
tag, use
\code
{
urllib.quote()
}
.
such characters in HTML. If the optional flag
\var
{
quote
}
is true,
the double quote character (
\code
{
"
}
) is also translated; this helps
for inclusion in an HTML attribute value, e.g. in ``
\code
{
<A HREF="...">
}
''.
\end{funcdesc}
...
...
Doc/libcgi.tex
View file @
9cb1c75c
...
...
@@ -219,10 +219,12 @@ content-type and a dictionary of parameters.
HTML.
\end{funcdesc}
\begin{funcdesc}
{
escape
}{}
: convert the characters ``
\code
{
\&
}
'', ``
\code
{
<
}
'' and ``
\code
{
>
}
'' to HTML-safe
\begin{funcdesc}
{
escape
}{
s
\optional
{
\,
quote
}}
: convert the characters
``
\code
{
\&
}
'', ``
\code
{
<
}
'' and ``
\code
{
>
}
'' in string
\var
{
s
}
to HTML-safe
sequences. Use this if you need to display text that might contain
such characters in HTML. To translate URLs for inclusion in the HREF
attribute of an
\code
{
<A>
}
tag, use
\code
{
urllib.quote()
}
.
such characters in HTML. If the optional flag
\var
{
quote
}
is true,
the double quote character (
\code
{
"
}
) is also translated; this helps
for inclusion in an HTML attribute value, e.g. in ``
\code
{
<A HREF="...">
}
''.
\end{funcdesc}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment