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