code: private String parse(String htmlInput) throws UnsupportedEncodingException {
  
          // prepare the streams
          ByteArrayInputStream in = new ByteArrayInputStream(htmlInput.getBytes(getEncoding()));
          ByteArrayOutputStream out = new ByteArrayOutputStream();
          // do the parsing
          m_tidy.parse(in, out);
          // return the result
          byte[] result = out.toByteArray();
          return new String(result, getEncoding());
      }
docs: Parses a byte array containing HTML code with different parsing modes.<p>
  
  @param htmlInput a byte array containing raw HTML code
  
  @return parsed and cleared HTML code
  
  @throws UnsupportedEncodingException if the encoding set for the conversion is not supported