How To Remove Html Tags From Text In Php with strip_tags
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?