HTML tag strip : HTML String « HTML « PHP






HTML tag strip

<?php
   $input = "This <a href='http://www.java2s.com/'>java2s</a> is <b> </b>!";
   echo strip_tags($input, "<a>");
?>


           
       








Related examples in the same category

1.Escape HTML char
2.strip_tags: strip tags from html string