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

Add Element#getWholeText() #564

Merged
merged 3 commits into from
Nov 20, 2017
Merged

Add Element#getWholeText() #564

merged 3 commits into from
Nov 20, 2017

Conversation

takezoe
Copy link
Contributor

@takezoe takezoe commented Apr 27, 2015

Add Element#getWholeText() to get raw text in the element easily.

@takezoe takezoe changed the title Add Element#getWhoteText() Add Element#getWholeText() Apr 27, 2015
public void tail(Node node, int depth) {
}
}).traverse(this);
return accum.toString().trim();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why trim()? if we use <p> Hello\nthere </p>, wouldn't I want everything inside <p> that is not an html node?

@jhy jhy merged commit e6af571 into jhy:master Nov 20, 2017
@jhy
Copy link
Owner

jhy commented Nov 20, 2017

Thanks! Merged. I renamed it to #wholeText()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants