Pliegue tectónico:

Y la falla tectónica:
La informática al 100%

<?php
$texto = "<a><li>hhhhhhh</li></a>";
$a = array("/\<a(.*?)\>(.*?)\<\/a\>/is");
$b = array("$2");
$texto = preg_replace($a, $b, $texto);
echo $texto;
?>
<?php
$texto = "<a><li>hhhhhhh</li></a>";
$a = array("/\<a(.*?)\>(.*?)\<\/a\>/is");
$b = array("$2");
$texto = htmlentities(preg_replace($a, $b, $texto));
echo $texto;
?>