ng2-bs-table
Version:
Boostrap table view for angular 2.
22 lines • 570 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var StringHelper = (function () {
function StringHelper() {
}
StringHelper.escapeHtml = function (html) {
var that = this;
return String(html).replace(/[<>"'\/]/g, function (s) {
return that.entityMap[s];
});
};
return StringHelper;
}());
StringHelper.entityMap = {
"<": "<",
">": ">",
'"': '"',
"'": ''',
"/": '/'
};
exports.StringHelper = StringHelper;
//# sourceMappingURL=string-helper.js.map