code: public static HtmlPage toHtmlPage(String string) {
          try {
              URL url = new URL("http://bitvunit.codescape.de/some_page.html");
              return HTMLParser.parseHtml(new StringWebResponse(string, url), new WebClient().getCurrentWindow());
          } catch (IOException e) {
              throw new RuntimeException("Error creating HtmlPage from String.", e);
          }
      }
docs: Creates a {@link HtmlPage} from a given {@link String} that contains the HTML code for that page.
  
  @param string {@link String} that contains the HTML code
  @return {@link HtmlPage} for this {@link String}