"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.htmlToText = exports.deleteText = void 0;

var htmlToText = function htmlToText(text) {
  var div = document.createElement("div");
  div.innerHTML = text;
  text = div.innerText || div.textContent;
  return text;
};

exports.htmlToText = htmlToText;

var deleteText = function deleteText(text) {
  var pattern = /(查看详情|Details|查看任务|进入日报|进入周报|进入月报|进入项目|进入今日工作)(?!.*\1)/;
  text = text.replace(pattern, '');
  return text;
};

exports.deleteText = deleteText;