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

Conversation

Projects
None yet
3 participants
@takezoe
Copy link
Contributor

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();

This comment has been minimized.

Copy link
@gsuero

gsuero Aug 28, 2015

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

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@jhy

This comment has been minimized.

Copy link
Owner

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
You can’t perform that action at this time.