- var_dump: documentation ( source)
- preg_replace: documentation ( source)
<?php
$content_no_tags = "This is my content right here!\xC2\xA0This is my content right here!\xC2\xA0";
var_dump(preg_replace( '/(\s| \p{Zs})+/u',' ', $content_no_tags ));