MCPcopy
hub / github.com/NervJS/nerv / normalizeHTML

Function normalizeHTML

packages/nerv/__tests__/util/index.js:6–10  ·  view source on GitHub ↗
(html)

Source from the content-addressed store, hash-verified

4export const CHILDREN_MATCHER = sinon.match((v) => v === null || (Array.isArray(v) && !v.length), '[empty children]')
5
6export function normalizeHTML (html) {
7 const div = document.createElement('div')
8 div.innerHTML = html
9 return div.innerHTML
10}
11
12export function getAttributes (node) {
13 const attrs = {}

Callers 12

dom.spec.jsFile · 0.90
fragments.spec.jsFile · 0.90
getHtmlFunction · 0.90
keys.spec.jsFile · 0.90
render.spec.jsFile · 0.90
context.spec.jsFile · 0.90
portal.spec.jsFile · 0.90
lifecycle.spec.jsFile · 0.90
patch.spec.jsFile · 0.90
component.spec.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected