JS实现HTML标签转义及反转义function HTMLEncode(html) { var temp = document.createElement("div") (temp.textContent != null) ?2023-03-07JavaScript380