In php there is a default function called strip_tags which strips a string from HTML and XML.
Syntax
<?php strip_tags(string,allow) ?> |
Example
<?php echo strip_tags("Hi, <b>Are you there?</b>"); ?> |
The output of the above example will be : Hi, Are you there?