Skip to content

Function to return all string and cdata of XMLTag.innerXML #20

@sophiebremer

Description

@sophiebremer

Is your feature request related to a problem? Please describe.
Combining all inner strings and cdata of an XMLTag to a text string is cumbersome.

Describe the solution you'd like
A utility function getTextContent would accept an XMLTag and return the text string of all XMLTag.innerXML.

Describe alternatives you've considered
Array.join() is not good enough to cover nested strings.

Additional context
A similar implementation can be found for DOM's Node.textContent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions