docs: public static String extractText(String content, String encoding)
      throws ParserException, UnsupportedEncodingException {
  
          if (CmsStringUtil.isEmpty(content)) {
              // if there is no HTML, then we don't need to extract anything
              return content;
          }
  
          // we must make sure that the content passed to the parser always is
          // a "valid" HTML page, i.e. is surrounded by <html><body>...</body></html>
          // otherwise you will get strange results for some specific HTML constructs
          StringBuffer newContent = new StringBuffer(content.length() + 32);
  
          newContent.append(CmsLinkProcessor.HTML_START);
          newContent.append(content);
          newContent.append(CmsLinkProcessor.HTML_END);
  
          // make sure the Lexer uses the right encoding
          InputStream in = new ByteArrayInputStream(newContent.toString().getBytes(encoding));
  
          // use the stream based version to process the results
          return extractText(in, encoding);
      }