|
|
@ -76,7 +76,7 @@ inside a `script` block here where different rules apply. |
|
|
|
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 ``</script>`` is handled as script. |
|
|
|
will not be parsed. Everything until ``</script>`` is handled as script. |
|
|
|
This also means that there must never be any ``</`` between the script |
|
|
|
This also means that there must never be any ``</`` between the script |
|
|
|
tags. ``|tojson`` is kindly enough to do the right thing here and |
|
|
|
tags. ``|tojson`` is kind enough to do the right thing here and |
|
|
|
escape slashes for you (``{{ "</script>"|tojson|safe }}`` is rendered as |
|
|
|
escape slashes for you (``{{ "</script>"|tojson|safe }}`` is rendered as |
|
|
|
``"<\/script>"``). |
|
|
|
``"<\/script>"``). |
|
|
|
|
|
|
|
|
|
|
|