UNPKG

zents

Version:

ZenTS is a Node.js & TypeScript MVC-Framework for building rich web applications, released as free and open-source software under the MIT License. It is designed for building web applications with modern tools and design patterns.

13 lines 382 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.escapeHtml = void 0; function escapeHtml(str) { return str .replace(/"/g, '&quot;') .replace(/'/g, '&#039;') .replace(/</g, '&lt;') .replace(/>/g, '&gt;') .replace(/&/g, '&amp;'); } exports.escapeHtml = escapeHtml; //# sourceMappingURL=escapeHtml.js.map