Skip to content

Not getting root tag text after included tags #46

@KSerjyk

Description

@KSerjyk

Doesnt parse or returns text after children tags in parent tag.
Example of html:

<p>    Завдання   nj jnjnjk knj ccjnds
<span style="background-color:rgb(97,189,109);">
kjc djck sdjkc 
</span>
dsckj dc dc csd c
</p>

Pursing result:

 {
    "NodeType": "Element",
    "Tag": "p",
    "Text": "Завдання   nj jnjnjk knj ccjnds",
    "Attr": {},
    "Children": [
      {
        "NodeType": "Element",
        "Tag": "span",
        "Text": "kjc djck sdjkc",
        "Attr": {
          "style": "background-color:rgb(97,189,109);"
        },
        "Children": []
      }
    ]
  }

And it also trims all start and end spaces in tags. So the text can not be set to one object, cause spaces gone

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions