UNPKG

@playbooks/utils

Version:

A collection of utilities used for Playbooks.

17 lines (16 loc) 542 B
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const html = require("@ehubbell/html"); const htmlToText$1 = require("html-to-text"); const htmlToText = (data, options) => { return htmlToText$1.convert(data, options); }; const stripHtmlEntities = (data = "") => { return data.replace(/(<([^>]+)>)/gi, ""); }; Object.defineProperty(exports, "computeTailwind", { enumerable: true, get: () => html.computeTailwind }); exports.htmlToText = htmlToText; exports.stripHtmlEntities = stripHtmlEntities;