MCPcopy Create free account
hub / github.com/code4craft/jsoup-learning / ownText

Method ownText

src/main/java/org/jsoup/nodes/Element.java:850–854  ·  view source on GitHub ↗

Gets the text owned by this element only; does not get the combined text of all children. For example, given HTML Hello there now! , p.ownText() returns "Hello now!", whereas p.text() returns "Hello there now!". Note that the text within the {

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 6

testGetChildTextMethod · 0.95
testBrHasSpaceMethod · 0.80
checkMethod · 0.80
matchesMethod · 0.80
matchesMethod · 0.80

Calls 4

appendNormalisedTextMethod · 0.95
appendWhitespaceIfBrMethod · 0.95
trimMethod · 0.80
toStringMethod · 0.45

Tested by 4

testGetChildTextMethod · 0.76
testBrHasSpaceMethod · 0.64
checkMethod · 0.64