I am trying to write a regular expression to strip all HTML with the exception of links (the and tags respectively. It does n
and
I keep going on about it, but there's no way I can recommend regexr too often. It's fantastic for testing this type of things.