How to stop an html TEXTAREA from decoding html entities

后端 未结 6 1245
眼角桃花
眼角桃花 2021-01-01 12:46

I have a strange problem:

In the database, I have a literal ampersand lt semicolon:

<div  

whenever its printed into a html

6条回答
  •  独厮守ぢ
    2021-01-01 12:54

    I found an alternative solution for reading and working with in-browser, simply read the element's text() using jQuery, it returns the characters as display characters and allows me to write from a textarea to a div's innerHTML using the property via html()...

提交回复
热议问题