JavaScript

jq把HTML字符串转义一下

2018-07-02  本文已影响6人  Lia代码猪崽
const str = '<div><p>asdas</p></div>'
$('<div/>').html(str).text()
上一篇 下一篇

猜你喜欢

热点阅读