"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.insertEmailPreviewText = insertEmailPreviewText;
const cheerio_1 = __importDefault(require("cheerio"));
const escape_goat_1 = require("escape-goat");
function insertEmailPreviewText(html, previewText) {
    const $ = cheerio_1.default.load(html);
    $('body').prepend(`
    <div style='display: none; max-height: 0px; overflow: hidden;'>
      ${(0, escape_goat_1.htmlEscape)(previewText)}
    </div>

    <div style="display: none; max-height: 0px; overflow: hidden;">
      &#847; &zwnj; &nbsp; &#8199; &shy; &#847; &zwnj; &nbsp; &#8199; &shy; &#847; &zwnj; &nbsp; &#8199; &shy; &#847; &zwnj; &nbsp; &#8199; &shy; &#847; &zwnj; &nbsp; &#8199; &shy; &#847; &zwnj; &nbsp; &#8199; &shy; &#847; &zwnj; &nbsp; &#8199; &shy; &#847; &zwnj; &nbsp; &#8199; &shy;
    </div>
  `);
    return $.html();
}
//# sourceMappingURL=insertEmailPreviewText.js.map