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

Unified Diff: Doc/library/html.rst

Issue 2830: Copy cgi.escape() to html
Patch Set: Created 8 years, 9 months ago
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Doc/library/cgi.rst ('k') | Doc/library/markup.rst » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Doc/library/html.rst
===================================================================
--- Doc/library/html.rst (revision 0)
+++ Doc/library/html.rst (revision 0)
@@ -0,0 +1,15 @@
+:mod:`html` --- HyperText Markup Language support
+=================================================
+
+.. module:: html
+ :synopsis: Helpers for manipulating HTML.
+
+This module defines a number of utilities to manipulate HTML.
+
+.. function:: escape(s, quote=False)
+
+ Convert the characters ``'&'``, ``'<'`` and ``'>'`` in string *s* to HTML-safe
+ sequences. Use this if you need to display text that might contain such
+ characters in HTML. If the optional flag *quote* is true, the characters (``"``)
+ and (``'``) are also translated; this helps for inclusion in an HTML
+ attribute value delimited by quotes, as in ``<a href="...">``.
Property changes on: Doc/library/html.rst
___________________________________________________________________
Added: svn:eol-style
+ native
« 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+