18
Can you try searching for
(?<=<[^>]*)
and replacing it with a single space?
This looks for inside tags (preceded by a < and possibly other characters except >).
This is extremely brittle, though. For example, it will fail if you have </> symbols in strings/attributes. Better avoid getting those into the wrong locations in the first place.