strip_tags()

It  strips HTML and PHP tags from a string

Example

<?php
echo strip_tags(“<div><p>phpcode</p></div>”);
?>

Output

phpcode

Share