domDiff.js
/**
 * cleans up unneeded spaces surrounding XML elements (as in before and after xml element tags)
 */
cleans up unneeded spaces surrounding XML elements (as in before and after xml element tags)
cleans up unneeded spaces surrounding XML elements ( as in before and after xml element tags )
function removeWhitespaceAroundTags(data)
{
	data = data.replace(/>\s*/g, '>');  
	data = data.replace(/\s*</g, '<');  
	return data;
}
function removeWhitespaceAroundTags ( data ) { data = data . replace ( / >\s* / g , '>' ) ; data = data . replace ( / \s*< / g , '<' ) ; return data ; }
cleans up unneeded spaces surrounding XML elements (as in before and after xml element tags)
cleans up unneeded spaces surrounding XML elements ( as in before and after xml element tags )
// Remove space after > // Remove space before <