HTML text escape tips
Today I saw a tip for HTML text escaping on CSDN, which is very simple. 1. Use the dom function. First pass it to a dom object as innerTEXT, then take the innerHTML attribute, and then you can get the escaped text. For example: div1.innerText =<h1> title
2025-06-09














