I\'m trying to remove white space between tags so that childNodes only contain those tags nodes not the white space nodes too. Here\'s my code :
Can you treat a html tag as a string in js? I guess it can be done. try this!
s.replace(/\s+/g, ' ');