Skip to content

Commit

Permalink
fix typo: "javscript"
Browse files Browse the repository at this point in the history
  • Loading branch information
rutsky committed Mar 12, 2015
1 parent 7445b58 commit dd77533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tornado/escape.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def json_encode(value):
# JSON permits but does not require forward slashes to be escaped.
# This is useful when json data is emitted in a <script> tag
# in HTML, as it prevents </script> tags from prematurely terminating
# the javscript. Some json libraries do this escaping by default,
# the javascript. Some json libraries do this escaping by default,
# although python's standard library does not, so we do it here.
# http://stackoverflow.com/questions/1580647/json-why-are-forward-slashes-escaped
return json.dumps(value).replace("</", "<\\/")
Expand Down

0 comments on commit dd77533

Please sign in to comment.