Decode HTML entities from the Strings

Sometimes we need to decode HTML entities from any specific strings in PHP. Basically it’s more used for retrieve HTML entities from a MySQL cell.? To Convert all HTML entities to their applicable characters there is one function available that is called html_entity_decode().



$orig?=?"I'll?"love"?the?<b>girl</b> very much";



echo?$a;?//?I'll?&quot;love&quot;?the?&lt;b&gt;girl&lt;/b&gt; very much

echo?$b;?//?I'll?"love"?the?<b>girl</b> very much?>

Shaharia is a professional software engineer with more than 10 years of experience in the relevant fields. Digital ad certified, cloud platform architect, Big data enthusiasts, tech early adopters.

Site Footer