PHPhtml_entity_decode()Function ❮ PHP String Reference ExampleGet your own PHP Server Convert HTML entities to characters: <?php $str ='w3schools.com'; echohtml_entity_decode($str); ?> The HTML output of the code above will be (...
The htmlspecialchars_decode() function converts some predefined HTML entities to characters.HTML entities that will be decoded are:& becomes & (ampersand)" becomes " (double quote)' becomes ' (single quote)< becomes < (less than)...