htmlspecialchars_decode < PHP

The htmlspecialchars_decode function converts HTML entities to their corresponding characters.

    
    $string = "This is some <b>bold</b> text.";

    $stringEntities = htmlspecialchars_decode($string);

    echo $stringEntities;
    // This is some bold text.