title: InnerHTML for Java
body: <p>I would like JavaScript style innerHTML in Java. For instance, I want to get 'TRUE' from the string below:</p>
  
  <pre><code>String control = "&lt;div class='myclass'&gt;TRUE&lt;/div&gt;";
  </code></pre>
  
  <p>But my pattern seems to be off as find() returns false. Ideas anyone?</p>
  
  <pre><code>Pattern pattern = Pattern.compile("&gt;(.*?)&lt;");
  Matcher matcher = pattern.matcher(control);
  
  if(matcher.find()) {
      result = matcher.group(1);
  }
  </code></pre>