I have in PHP a string which contain stuff like this:
<div>some html</div>
<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />
<div>more html</div>
I need to remove all occurences of xml tags and everything they contain. I think one might use regex to do that but I don’t how to use it.
Use strip_tags if you want remove all markup or this