strip_tags is a very powerful function if you know how to use it. As a method to prevent cross-site scripting attacks there are better methods, such as character encoding, but stripping tags is useful in some cases.
Basic Example
$string = '<b>Hello,<> please remove the <> tags.&...