去除 HTML 标签
Usage:
const ret = clearHtml('<div>hello world</div>');console.log(ret); Copy
const ret = clearHtml('<div>hello world</div>');console.log(ret);
Output:
hello world Copy
hello world
带html标签的字符串
Optional
字符串
去除 HTML 标签
Usage:
Output: