﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
13114	escapejs filter produces invalid JSON according to http://www.json.org/	David Danier <david.danier@…>	nobody	"The escapejs filter uses \x.. to escape special characters inside strings. According to http://www.json.org/ this is wrong, \u.... should be used instead.

This actually bite me while using jQuery. Since jQuery 1.4 the JSON-responses get validated, so all my JSON-responses (that are constructed using escapejs) got broken. 

Patch to fix this should be rather trivial.

Steps to reproduce:
{{{
>>> from django.template.defaultfilters import escapejs
>>> print escapejs('just-a-test')
just\x2Da\x2Dtest
}}}

Open http://www.jsonlint.com/ and paste {{{ [""just\x2Da\x2Dtest""] }}}, hit Validate.
"		closed	Uncategorized	1.1		fixed			Accepted	0	0	0	0	0	0
