With the help of strip_tags(), we can remove HTML tags from data in PHP.

The strip_tags() function strips a string from HTML, XML, and PHP tags.

strip_tags(string,allow)

The first parameter is required. It specifies the string to check.

The second parameter is optional. It specifies allowable tags. Mention tags will not be removed

BY Best Interview Question ON 01 Oct 2019