code: private String tidy(final String content) {
  
          CmsHtmlConverter converter = new CmsHtmlConverter(
              CmsEncoder.ENCODING_UTF_8,
              new StringBuffer(CmsHtmlConverter.PARAM_WORD).append(";").append(CmsHtmlConverter.PARAM_XHTML).toString());
          String result = content;
          try {
              result = converter.convertToString(content);
          } catch (UnsupportedEncodingException e) {
              // should never happen
              if (LOG.isWarnEnabled()) {
                  LOG.warn(Messages.get().getBundle().key(Messages.LOG_WARN_TIDY_FAILURE_0), e);
              }
          }
          return result;
      }
docs: Internally tidies with cleanup and XHTML.<p>
  
  @param content HTML to clean
  
  @return the tidy HTML