<?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, ); }