MCPcopy
hub / github.com/codedogQBY/ReadAny / getElementText

Function getElementText

packages/foliate-js/epub.js:84–84  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

82 el ? Object.fromEntries(xs.map((x) => [camel(x), el.getAttribute(x)])) : null;
83
84const getElementText = (el) => normalizeWhitespace(el?.textContent);
85
86const childGetter = (doc, ns) => {
87 // ignore the namespace if it doesn't appear in document at all

Callers 8

parseFunction · 0.70
parseLIFunction · 0.70
parseNavFunction · 0.70
parseItemFunction · 0.70
parseNCXFunction · 0.70
getUUIDFunction · 0.70
getIdentifierFunction · 0.70
getDisplayOptionsFunction · 0.70

Calls 1

normalizeWhitespaceFunction · 0.70

Tested by

no test coverage detected