Is it possible for RegEx to clear the space in HTML?
For instance:
<p><b>foo</b> <i>bar</i></p> <p>foo</p> <p>bar</p>
In the first line, the space between the closing b and the opening tag is valid (although it can be ), however on the second line it is the space that I want to clear, since it should not have any semantic meaning.
Perhaps this would be better solved with a DOM bypass?
source share