Browse Source

Merge pull request #3035 from makbari/html-parser Fixes #3034

bug fix #3034
pull/3167/head
Artur Arseniev 5 years ago
committed by GitHub
parent
commit
8e7f94abb0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/parser/model/ParserHtml.js

2
src/parser/model/ParserHtml.js

@ -202,7 +202,7 @@ export default config => {
// just make it content of the current node
if (nodeChild === 1 && firstChild.nodeType === 3) {
!model.type && (model.type = 'text');
model.content = firstChild.nodeValue;
model.components = firstChild.nodeValue;
} else {
model.components = this.parseNode(node);
}

Loading…
Cancel
Save