Skip to content

Commit

Permalink
Using separate vars in htmlEscape.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Sep 25, 2014
1 parent d28f837 commit 6df7702
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/htmlEscape.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ from hogan https://github.com/twitter/hogan.js/blob/master/lib/template.js#L317-
module.exports = (function () {
'use strict';

var rAmp = /&/g,
rLt = /</g,
rGt = />/g,
rApos = /\'/g,
rQuot = /\"/g,
hChars = /[&<>\"\']/;
var rAmp = /&/g;
var rLt = /</g;
var rGt = />/g;
var rApos = /\'/g;
var rQuot = /\"/g;
var hChars = /[&<>\"\']/;

var coerceToString = function (val) {
return String(val || '');
Expand Down

0 comments on commit 6df7702

Please sign in to comment.