<?php ob_get_clean(): string|false
<?php var_dump($var); try { $output = ob_get_clean(); assert(is_string($output)); return strip_tags(html_entity_decode($output));