Hello I try to keep only specific tag from an html string.
For example:
$allowed_tag=array('a');
$content = '<a href="#">link</a> <b>strong text</b>';
$content = prefix_remove_specific_tag($content, $allowed_tag);
echo $content
Will return
<a href="#">link</a> strong text
I'm sure a wp core function existe for that, but i can't find it :(