jsonml-html.js
function(node, pattern) {
		if (!!node && (node.nodeType === 3) && pattern.exec(node.nodeValue)) {
			node.nodeValue = node.nodeValue.replace(pattern, '');
		}
	}
function(node, pattern) {
		if (!!node && (node.nodeType === 3) && pattern.exec(node.nodeValue)) {
			node.nodeValue = node.nodeValue.replace(pattern, '');
		}
	}
function ( node , pattern ) { if ( ! ! node && ( node . nodeType === 3 ) && pattern . exec ( node . nodeValue ) ) { node . nodeValue = node . nodeValue . replace ( pattern , '' ) ; } }
Trims whitespace pattern from the text node

@private
@param {Node} node The node
Trims whitespace pattern from the text node