@golemio/pid
Version:
Golemio PID Module
13 lines • 402 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HTMLUtils = void 0;
const html_entities_1 = require("html-entities");
class HTMLUtils {
static outputPlainText(html) {
if (!html)
return null;
return (0, html_entities_1.decode)(html).replace(/<[^>]+>/g, "");
}
}
exports.HTMLUtils = HTMLUtils;
//# sourceMappingURL=HTMLUtils.js.map