Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sophiebremer opened this issue Mar 20, 2024 · 0 comments
Open

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

sophiebremer opened this issue Mar 20, 2024 · 0 comments
Labels
Feature Request New feature request

Comments

@sophiebremer
Copy link
Member

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.

@sophiebremer sophiebremer added the Feature Request New feature request label Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New feature request
Development

No branches or pull requests

1 participant