parse-html.d.ts 429 B

123456789101112
  1. /**
  2. * @description 将粘贴的 html 字符串,转换为正确、简洁的 html 代码。剔除不必要的标签和属性。
  3. * @author wangfupeng
  4. */
  5. /**
  6. * 处理粘贴的 html
  7. * @param html html 字符串
  8. * @param filterStyle 是否过滤 style 样式
  9. * @param ignoreImg 是否忽略 img 标签
  10. */
  11. declare function parseHtml(html: string, filterStyle?: boolean, ignoreImg?: boolean): string;
  12. export default parseHtml;