Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(197823)

Side by Side Diff: Doc/library/html.rst

Issue 2830: Copy cgi.escape() to html
Patch Set: Created 9 years, 3 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Doc/library/cgi.rst ('k') | Doc/library/markup.rst » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ native
OLDNEW
(Empty)
1 :mod:`html` --- HyperText Markup Language support
2 =================================================
3
4 .. module:: html
5 :synopsis: Helpers for manipulating HTML.
6
7 This module defines a number of utilities to manipulate HTML.
8
9 .. function:: escape(s, quote=False)
10
11 Convert the characters ``'&'``, ``'<'`` and ``'>'`` in string *s* to HTML-saf e
12 sequences. Use this if you need to display text that might contain such
13 characters in HTML. If the optional flag *quote* is true, the characters (`` "``)
14 and (``'``) are also translated; this helps for inclusion in an HTML
15 attribute value delimited by quotes, as in ``<a href="...">``.
OLDNEW
« no previous file with comments | « Doc/library/cgi.rst ('k') | Doc/library/markup.rst » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+