The html_entity_decode() function is used to convert all HTML entities to their applicable characters. The html_entity_decode() function is the opposite of htmlentities(). You may also like PHP htmlspecialchars_decode() Function.
Example
<?php
$str = '<a href="https://scriptsgurus.com">scriptsgurus.com</a>';
echo html_entity_decode($str);
?>
Output
<a href="http://scriptsgurus.com">Go to scriptsgurus.com</a>