Skip to content

Commit

Permalink
Fix bug in HTML-escaping apostrophe.
Browse files Browse the repository at this point in the history
  • Loading branch information
aseemk authored and kof committed Apr 19, 2011
1 parent 6996b33 commit f2cffbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jqtpl.js
Expand Up @@ -52,7 +52,7 @@ exports.escape = function(str) {
.replace(/&(?!\w+;)/g, '&')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/'/g, '&#39')
.replace(/'/g, '&#39;')
.replace(/"/g, '&quot;');
};

Expand Down

0 comments on commit f2cffbf

Please sign in to comment.