MCPcopy
hub / github.com/basecamp/trix / parse

Method parse

src/trix/models/html_parser.js:63–67  ·  view source on GitHub ↗
(html, options)

Source from the content-addressed store, hash-verified

61
62export default class HTMLParser extends BasicObject {
63 static parse(html, options) {
64 const parser = new this(html, options)
65 parser.parse()
66 return parser
67 }
68
69 constructor(html, { referenceElement, purifyOptions } = {}) {
70 super(...arguments)

Callers 12

serialization.jsFile · 0.45
fromJSONStringMethod · 0.45
loadHTMLMethod · 0.45
insertHTMLMethod · 0.45
replaceHTMLMethod · 0.45
toConsoleMethod · 0.45
parseTrixDataAttributeFunction · 0.45
toConsoleMethod · 0.45
fetchRecordingAtURLMethod · 0.45
document_test.jsFile · 0.45

Calls 6

createHiddenContainerMethod · 0.95
processNodeMethod · 0.95
removeHiddenContainerMethod · 0.95
walkTreeFunction · 0.90
setHTMLMethod · 0.45

Tested by

no test coverage detected