php preg_match remove html tags from string code example Example: remove html from string php echo strip_tags("Hello <b>world!</b>");