当我用文本节点设置值时
node.nodeValue="string with &#xxxx; sort of characters"
Run Code Online (Sandbox Code Playgroud)
&符号被逃脱.是否有捷径可寻?
我刚刚使用JavaScript和PHP在MySQL数据库中存储了一段文本并替换\n为<br />,我现在遇到的问题是当我尝试使用PHP检索文本时将其打印出来;<br />
Dear Sir/Maddam<br />This is a letter concerning the following;<br />I would like to....
Run Code Online (Sandbox Code Playgroud)