<?php html_entity_decode(string $string, int $flags = ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401, ?string $encoding = null): string
<?php $output = ob_get_clean(); assert(is_string($output)); return strip_tags(html_entity_decode($output)); } finally { ini_set('html_errors', $html); }