Display the drop-down list

strip_tags()

« strftime | stripcslashes »
<?php
$string 
strip_tags (
    
// string $str
    
  // [string $allowable_tags]
);
?>
Result
$string = 'Test paragraph. Other text'
Examples
#1 strip_tags  ("<p>Test paragraph.</p><!-- Comment --> <a href=\"#fragment\">Other text</a>")
#2 strip_tags  ("<p>Test paragraph.</p><!-- Comment --> <a href=\"#fragment\">Other text</a>",
 
"<p><a>")
See also
htmlspecialchars