Remove HTML tags from a string, and optionally newline characters.
Usage:
const ret = removeHTML('<div>hello world</div>');console.log(ret); Copy
const ret = removeHTML('<div>hello world</div>');console.log(ret);
Output:
hello world Copy
hello world
带 HTML 标签的字符串
Optional
字符串
Remove HTML tags from a string, and optionally newline characters.
Usage:
Output: