I have a cruel plan - replace any tag that closes the ">" with a space, and remove the double spaces
<?php
$text = '<div>test</div><div>me</div>';
$text = preg_replace('/(<\/[a-z]+>)/', '$1 ', $text);
$text = trim(preg_replace('/\s+/', ' ', strip_tags($text)));
var_dump($text);
Returns
string(7) "test me"
source
share