How to remove html tags from a string in php?
This example is focused on how to remove html tags from a string in php. You can removes HTML tags using strip_tags() method.
1. Code:
to Soltuts.com"; //display the sting without any html tags echo strip_tags($html_string); ?>
2. Example:
Input:
input: "Welcome to Soltuts.com";
Output:
Welcome to Soltuts.com