code: public String stripHtml(final String html) throws ParserException {
  
          String content = html;
          if (m_useTidy) {
              content = tidy(content);
          }
  
          // initialize a parser with the given charset
          Parser parser = new Parser();
          parser.setNodeFactory(m_nodeFactory);
          Lexer lexer = new Lexer();
          Page page = new Page(content);
          lexer.setPage(page);
          parser.setLexer(lexer);
          // process the page using a string collection wizard
          // echo on
          CmsHtmlParser visitor = new CmsHtmlParser(true);
          parser.visitAllNodesWith(visitor);
          // return the result
          return visitor.getResult();
      }
docs: Extracts the text from the given html content, assuming the given html encoding.
  <p>
  Additionally tags are replaced / removed according to the configuration of this instance.
  <p>
  
  <h3>Please note:</h3>
  There are static process methods in the superclass that will not do the replacements /
  removals. Don't mix them up with this method.
  <p>
  
  @param html the content to extract the plain text from.
  
  @return the text extracted from the given html content.
  
  @throws ParserException if something goes wrong.