Hello kind people, do not judge strictly for a child's question, I just learn. PHP has a strip_tags function that removes html tags in a string. In the second parameter, you can specify exceptions, i.e. Those tags that it should leave, for example like this:
echo strip_tags($text, '<i><u><b>'); Question; is it possible, on the contrary, to indicate in the function those parameters that it should delete, and leave everything else? for example
функция($text,<a>) //удалить теги <a> а все остальные оставить Not necessarily just strip_tags (), you can offer an analogue. I can make up a regular expression, but can there be a special function?