I'm looking to know how I can strip any hyperlink < a > tags from within some text - the whole lot including the text/image whatever is being linked before the end < / a > tag.
E.g.
<a href="http://stackoverflow.com">Click here</a>
<a href="http://stackoverflow.com"><img src="http://stackoverflow.com" alt = "blah"></a>
ie. remove the whole lot.
Any ideas how to do this?
Thanks