close
Encode to HTML
jQuery('<div />').text('Some text with <div>html</div>').html()
Decode
jQuery('<div />').html('Some text with <div>html</div>').text()
資料來源 https://coderwall.com/p/jt7ysq/encode-string-to-html-entities-via-jquery
全站熱搜
留言列表