How to decode HTML entities using jQuery?

后端 未结 19 2242
忘了有多久
忘了有多久 2020-11-21 23:21

How do I use jQuery to decode HTML entities in a string?

19条回答
  •  臣服心动
    2020-11-21 23:46

    For ExtJS users, if you already have the encoded string, for example when the returned value of a library function is the innerHTML content, consider this ExtJS function:

    Ext.util.Format.htmlDecode(innerHtmlContent)
    

提交回复
热议问题