public List < String > eachText ( ) { ArrayList < String > texts = new ArrayList <> ( size ( ) ) ; for ( Element el : this ) { if ( el . hasText ( ) ) texts . add ( el . text ( ) ) ; } return texts ; }
Get the text content of each of the matched elements . If an element has no text then it is not included in the result .