code: public static String extractHtmlBody(String content) {
  
          Matcher startMatcher = BODY_START_PATTERN.matcher(content);
          Matcher endMatcher = BODY_END_PATTERN.matcher(content);
  
          int start = 0;
          int end = content.length();
  
          if (startMatcher.find()) {
              start = startMatcher.end();
          }
  
          if (endMatcher.find(start)) {
              end = endMatcher.start();
          }
  
          return content.substring(start, end);
      }
docs: Extracts the content of a <code>&lt;body&gt;</code> tag in a HTML page.<p>
  
  This method should be pretty robust and work even if the input HTML does not contains
  a valid body tag.<p>
  
  <b>Directly exposed for JSP EL</b>, not through {@link org.opencms.jsp.util.CmsJspElFunctions}.<p>
  
  @param content the content to extract the body from
  
  @return the extracted body tag content