diff --git a/docs/api.rst b/docs/api.rst index 0306c566..06d673d8 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -376,9 +376,9 @@ JSON module: as string. The :func:`~htmlsafe_dumps` function of this json module is also available -as filter called ``|tojson`` in Jinja2. Note that inside `script` +as filter called ``|tojson`` in Jinja2. Note that inside ``script`` tags no escaping must take place, so make sure to disable escaping -with ``|safe`` if you intend to use it inside `script` tags unless +with ``|safe`` if you intend to use it inside ``script`` tags unless you are using Flask 0.10 which implies that: .. sourcecode:: html+jinja diff --git a/docs/patterns/jquery.rst b/docs/patterns/jquery.rst index dc4f51fa..bcf804d3 100644 --- a/docs/patterns/jquery.rst +++ b/docs/patterns/jquery.rst @@ -65,12 +65,12 @@ like this: The ``|safe`` is necessary in Flask before 0.10 so that Jinja does not escape the JSON encoded string with HTML rules. Usually this would be -necessary, but we are inside a `script` block here where different rules +necessary, but we are inside a ``script`` block here where different rules apply. .. admonition:: Information for Pros - In HTML the `script` tag is declared `CDATA` which means that entities + In HTML the ``script`` tag is declared ``CDATA`` which means that entities will not be parsed. Everything until ```` is handled as script. This also means that there must never be any ``