summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2021-04-10 10:22:24 -0700
committerDavid Lord <davidism@gmail.com>2021-04-10 10:22:24 -0700
commitaafe94d97a75ffd82f8d38c0a9b5d7e6d250e3e7 (patch)
treeedc0f1c09e0e1f2e287d3e983de567c41a6f5414 /docs
parent39846a887b105497bd5aabc02f40a1e89f422c1f (diff)
downloadjinja2-aafe94d97a75ffd82f8d38c0a9b5d7e6d250e3e7.tar.gz
Markup and escape should be imported from markupsafe
Diffstat (limited to 'docs')
-rw-r--r--docs/api.rst18
1 files changed, 0 insertions, 18 deletions
diff --git a/docs/api.rst b/docs/api.rst
index ce3a26e..79efd87 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -609,28 +609,10 @@ functions to a Jinja environment.
.. autofunction:: jinja2.environmentfunction
-.. function:: escape(s)
-
- 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. This function will not escaped objects
- that do have an HTML representation such as already escaped data.
-
- The return value is a :class:`Markup` string.
-
.. autofunction:: jinja2.clear_caches
.. autofunction:: jinja2.is_undefined
-.. autoclass:: jinja2.Markup([string])
- :members: escape, unescape, striptags
-
-.. admonition:: Note
-
- The Jinja :class:`Markup` class is compatible with at least Pylons and
- Genshi. It's expected that more template engines and framework will pick
- up the `__html__` concept soon.
-
Exceptions
----------