summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2010-03-15 08:06:47 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2010-03-15 08:06:47 +0000
commitc64669a6140444cd799d1b9bc826e67ae8b0d55a (patch)
treebc8a737adf7597d4d82e459157fb85a4cb48cd0d /docs
parentd3ee5566b4804f40e4cf5e86e4bdb5b2c629b8a2 (diff)
[1.1.X] Fixed #13114 -- Modified escapejs to produce output that is JSON compliant. Thanks to David Danier for the report.
Backport of r12780 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12781 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/templates/builtins.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt
index 48f7f6caeb..d68facb0d5 100644
--- a/docs/ref/templates/builtins.txt
+++ b/docs/ref/templates/builtins.txt
@@ -760,8 +760,8 @@ use keyword syntax::
{% url path.to.some_view arg1=v1,arg2=v2 %}
-Do not mix both positional and keyword syntax in a single call. All arguments
-required by the URLconf should be present.
+Do not mix both positional and keyword syntax in a single call. All arguments
+required by the URLconf should be present.
For example, suppose you have a view, ``app_views.client``, whose URLconf
takes a client ID (here, ``client()`` is a method inside the views file
@@ -1077,7 +1077,7 @@ For example::
{{ value|escapejs }}
If ``value`` is ``"testing\r\njavascript \'string" <b>escaping</b>"``,
-the output will be ``"testing\\x0D\\x0Ajavascript \\x27string\\x22 \\x3Cb\\x3Eescaping\\x3C/b\\x3E"``.
+the output will be ``"testing\\u000D\\u000Ajavascript \\u0027string\\u0022 \\u003Cb\\u003Eescaping\\u003C/b\\u003E"``.
.. templatefilter:: filesizeformat