strip_tags -- Strip HTML and PHP tags from a string


string strip_tags(string str);

This function tries to strip all HTML and PHP tags from the given string. It errors on the side of caution in case of incomplete or bogus tags. It uses the same tag stripping state machine as the fgetss() function.