Answered
Regex for removing whitespace between html tags
<html> <div><p> Hi there</p> </div> </html>Sample code above has whitespace, which I need to get rid of. I've found various examples used in different code settings and tried plugging them into a CF REReplace() function, but nothing has worked so far.
e.g. something like this in node
var result = html.replace(/>\s+|\s+</g, function(m) {
return m.trim();
});
Any help greatly appreciated.
