I am getting an ajax response with the following message
:
我收到了ajax响应,其中有如下消息:
"L'insertion a été effectuée."
in frensh and when i try to display it :
当我试图展示它的时候
document.getElementById('message').innerHTML = message;
which puts the message in its initial form , how can i get it to be displayed like this :
它将消息以初始形式显示,我如何使它显示如下:
"L'insertion a été effectuée."
1 个解决方案
#1
1
This should be able to help you: http://www.naveen.com.au/javascript/jquery/encode-or-decode-html-entities-with-jquery/289
这应该能够帮助您:http://www.naveen.com.au/javascript/jquery/encode-or-decode-html- html-实体-jquery/289
#1
1
This should be able to help you: http://www.naveen.com.au/javascript/jquery/encode-or-decode-html-entities-with-jquery/289
这应该能够帮助您:http://www.naveen.com.au/javascript/jquery/encode-or-decode-html- html-实体-jquery/289