MCPcopy Create free account
hub / github.com/shoutem/ui / createElementNode

Function createElementNode

html/services/HtmlParser.js:17–24  ·  view source on GitHub ↗
(tag, attributes = {}, childElements = [], parent)

Source from the content-addressed store, hash-verified

15}
16
17function createElementNode(tag, attributes = {}, childElements = [], parent) {
18 return {
19 tag,
20 attributes,
21 childElements,
22 parent,
23 };
24}
25
26// Html new line regex
27const htmlNewLineRegex = new RegExp('(>\\n)|(\\n<)|(\\n)', 'g');

Callers 2

constructorMethod · 0.85
addChildMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected