Select Page

Tag: PHP

How to strip all tags inside a sting in php?

To strip all HTML tags inside a string in PHP, you can use the strip_tags() function with no second argument, or an empty string as the second argument. Here’s an example: $str = “<p>This is a <b>sample</b> string with <a...