PHP Strip_Tags() Function, First Argument Is Text To Transform. – String Function

 
The second argument is optional and should be a list of HTML tags that strip_tags() can leave in place. <?php
$string = "<p>I <i> will not have </i>it,";
$string .= "<br/>.</p><b>The end</b>";
print strip_tags( $string, "<br/>" );
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.