strip_tags() function removes all HTML and PHP tags from string, leaving only the text entities.
Its syntax is: string strip_tags (string string [, string allowable_tags]) <? $user_input = "i just <b>love</b> PHP!"; $stripped_input = strip_tags($user_input); print $stripped_input; ?>