// file. Handlebars unfortunately creates enclosed references to its utils, so
// we have to maintain a complete fork of this file rather than just overriding
// specific parts.
key;
}
}
};
};
};
Handlebars.Utils = {
escapeExpression: function (string) {
// Skip escaping for empty strings.
if (string === '') {
return string;
}
// Don't escape SafeStrings, since they're already (presumed to be)
// safe.
return '';
}
// Unlike Handlebars' escaping implementation, Y.Escape.html() will
// double-escape existing & entities. This seems much less
// surprising than avoiding double-escaping, especially since
// a lack of double-escaping would make it impossible to use Handlebars
// for things like displaying escaped code snippets.
},
if (value === false
return true;
}
return false;
}
};