strip_tags() function is the simplest & fast PHP function to remove HTML tags in text string. Here's the simple example. $m_school = strip_tags( $m_school);