You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
429 B
Plaintext
13 lines
429 B
Plaintext
/**
|
|
* @description 将粘贴的 html 字符串,转换为正确、简洁的 html 代码。剔除不必要的标签和属性。
|
|
* @author wangfupeng
|
|
*/
|
|
/**
|
|
* 处理粘贴的 html
|
|
* @param html html 字符串
|
|
* @param filterStyle 是否过滤 style 样式
|
|
* @param ignoreImg 是否忽略 img 标签
|
|
*/
|
|
declare function parseHtml(html: string, filterStyle?: boolean, ignoreImg?: boolean): string;
|
|
export default parseHtml;
|