我有这样的html字符串:
<div class="short-description"> <h2></h2> <div class="std"><p>This <strong>1-1/2 in by 25 ft. Deluxe In-Ground Pool Vacuum Hose</strong> fits most in-ground residential and commercial pool cleaning applications. The continuous spiral wound construction of the vacuum hose provides excellent flexibility and strength. The smooth spiral design inner wall also allows for maximum efficiency of water flow.</p><br /><p><em>**Color may be blue or grey**</em></p></div> </div>
我使用它对其进行编码,htmlentities
然后使用它成功解码再次对其进行html_entity_decode
解码,但是当在网络浏览器上时,它就像:
"<div></div>"
html 打印在页面上。
我知道这与将 html 保存在 db 表中的编码无关,对此有任何想法。
谢谢