我已經和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>
PHP的HTML被印刷,因爲它是網頁
我把它用htmlentities
並再次使用html_entity_decode
它成功地解碼解碼,但是當在Web瀏覽器中它的到來等編碼: "<div></div>"
html被打印在頁面上。
我知道這是不相關的編碼的HTML保存在數據庫表任何想法就此。
謝謝
顯示一些PHP代碼,以便我們可以看到其他地方是否存在問題...''html_entity_decode'應該做的訣竅......但既然你提到你正在使用它,它可能是別的原因造成的問題 – naththedeveloper
它看起來像你編碼了兩次。 '<編碼爲'<',然後編碼爲'& lt;'。所以你需要解碼兩次才能解決這個問題。 – Barmar
@Barmar謝謝barmer ......你解碼了兩次案例解決了這個問題。將您的評論發佈爲答案。 – ravisoni