Escape single quote with numerical html character code rather than hex.

Former-commit-id: aef76d2662a065affc21ff735de526a177b50546
This commit is contained in:
Timmy Willison
2013-02-08 14:54:12 -05:00
parent db29699927
commit ce0441694d
6 changed files with 18 additions and 14 deletions

View File

@@ -32,7 +32,7 @@
var oldDash = window._;
/** Used to match HTML entities */
var reEscapedHtml = /&(?:amp|lt|gt|quot|#x27);/g;
var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g;
/** Used to match empty string literals in compiled template source */
var reEmptyStringLeading = /\b__p \+= '';/g,
@@ -743,7 +743,7 @@
'<': '&lt;',
'>': '&gt;',
'"': '&quot;',
"'": '&#x27;'
"'": '&#39;'
};
/** Used to convert HTML entities to characters */
@@ -3978,7 +3978,7 @@
/**
* The opposite of `_.escape`, this method converts the HTML entities
* `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#x27;` in `string` to their
* `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to their
* corresponding characters.
*
* @static