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
Here you go:
{<(?!i|b|h[1-6]|/i|/b|/h[1-6][\s|>|/])[^>]*>}