The strip_tags() function used for strips all tags of HTML and PHP in a string.
Syntax
strip_tags(string,allowable_tags)
allowable_tags
optional-second parameter to specify tags which should not be stripped.
Example
echo strip_tags("Hello <b>dear</b>");
Output
Hello dear
Copyright ©2022 coderraj.com. All Rights Reserved.