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