title: Counting inner text letters of HTML element
body: <p>Is there a way to count the letters of inner text of an HTML element, without counting the letters of inner element's texts?</p>
  
  <p>I tried out the ".getText()" method of "WebElements" using the Selenium library, but this counts the inner Texts of inner web elements in (e.G. "&#60;body&#62;&#60;div&#62;test&#60;/div&#62;&#60;/body&#62;" results in 4 letters for the "div" <strong>and</strong> the "body" element, instead of <strong>0</strong> for the "body" element)</p>
  
  <p>Do I have to use an additional HTML parsing library, and when yes which one would you recommend?</p>
  
  <p>I'm using Java 7...</p>