MCPcopy Index your code
hub / github.com/documentcloud/visualsearch / open

Function open

docs/assets/highlight.js:121–131  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

119 }
120
121 function open(node) {
122 var result = '<' + node.nodeName.toLowerCase();
123 for (var i = 0; i < node.attributes.length; i++) {
124 var attribute = node.attributes[i];
125 result += ' ' + attribute.nodeName.toLowerCase();
126 if (attribute.nodeValue != undefined) {
127 result += '="' + escape(attribute.nodeValue) + '"';
128 }
129 }
130 return result + '>';
131 }
132
133 while (stream1.length || stream2.length) {
134 var current = selectStream().splice(0, 1)[0];

Callers 1

mergeStreamsFunction · 0.85

Calls 1

escapeFunction · 0.70

Tested by

no test coverage detected