htmlspecialchars_decode

Supported Versions: PHP 5 >= 5.1.0, PHP 7, PHP 8
Convert special HTML entities back to characters
<?php htmlspecialchars_decode(string $string, int $flags = ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401): string
<?php         $data = (string) str($html)->betweenFirst($attribute.'="', '"');



        return json_decode(

            htmlspecialchars_decode($data, ENT_QUOTES|ENT_SUBSTITUTE),

            associative: true,

        );

    }