📜  仅从 html 描述 javascript 代码示例中获取字符串

📅  最后修改于: 2022-03-11 15:01:49.551000             🧑  作者: Mango

代码示例1
// get only stringText from htmlText
const description_html = "
all html tag
" var description_string = description_html.replace(/<\/?[^>]+(>|$)/g, "");