I have and html string like this :
<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>
I encoded it using htmlentities
and again decoding it using html_entity_decode
it decoding successfully but when on the web browser it coming like :
"<div></div>"
the html is printed out on the page.
I know this is not related to encoding the html is saved in db table any idea on this.
Thanks