Skip to content

Commit

Permalink
Reduce work done in escapejs somewhat
Browse files Browse the repository at this point in the history
  • Loading branch information
BjarniRunar authored and DoubleMalt committed Jun 9, 2015
1 parent 29da361 commit bf9da62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mailpile/www/jinjaextensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,8 +618,8 @@ def _escapejs(self, value):
Lightly inspired from https://github.com/django/django/blame/ebc773ada3e4f40cf5084268387b873d7fe22e8b/django/utils/html.py#L63
"""
for bad, good in self._JS_ESCAPES:
value = self._safe(value).replace(bad, good)
return value
value = value.replace(bad, good)
return self._safe(value)

@classmethod
def _nice_text(self, text):
Expand Down

0 comments on commit bf9da62

Please sign in to comment.