Decode HTML entities using Javascript
SoI'mdoingtheConvertHTMLEntitiesexerciseandItypedupthefollowingcode:functionconvertHTML(str){constsymbols={&:& ...,JavaScriptHTMLEntitiesEncode&Decode.LikePHP'shtmlentities()/htmlspecialchars()functions,JavaScriptiseasytoimplementit.,Itworksby...。參考影片的文章的如下: