I have the following HTML:
<h1>Text Text</h1> <h2>Text Text</h2>
I am still trying to get a handle on regular expressions, and trying to create one that would eliminate the spacing between the tags.
I would like the final result to be:
<h1>Text Text</h1><h2>Text Text</h2>
Any help would be greatly appreciated!
UPDATE
I would like to strip out all white spaces, tabs and new lines. So if I have:
<div> <h1>Text Text</h1> <h2>Text Text</h2> </div>
I would like it to end up as:
<div><h1>Text Text</h1><h2>Text Text</h2></div>