MCPcopy Create free account
hub / github.com/ampproject/amphtml / serialize

Function serialize

test/unit/test-purifier.js:49–53  ·  view source on GitHub ↗

* @param {string} html * @return {!NodeList}

(html)

Source from the content-addressed store, hash-verified

47 * @return {!NodeList}
48 */
49 function serialize(html) {
50 const div = document.createElement('div');
51 div.innerHTML = html;
52 return div.childNodes;
53 }
54
55 /**
56 * @param {!NodeList} a

Callers 1

test-purifier.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected