private void initHtmlConverters() {

        // check if any HTML converter configuration were found
        if (m_configuredHtmlConverters.size() == 0) {
            // no converters configured, add default JTidy converter configuration
            String classJTidy = CmsHtmlConverterJTidy.class.getName();
            m_configuredHtmlConverters.add(
                new CmsHtmlConverterOption(CmsHtmlConverter.PARAM_ENABLED, classJTidy, true));
            m_configuredHtmlConverters.add(new CmsHtmlConverterOption(CmsHtmlConverter.PARAM_XHTML, classJTidy, true));
            m_configuredHtmlConverters.add(new CmsHtmlConverterOption(CmsHtmlConverter.PARAM_WORD, classJTidy, true));
            m_configuredHtmlConverters.add(
                new CmsHtmlConverterOption(CmsHtmlConverter.PARAM_REPLACE_PARAGRAPHS, classJTidy, true));
        }

        // initialize lookup map of configured HTML converters
        m_htmlConverters = new HashMap<String, String>(m_configuredHtmlConverters.size());
        for (Iterator<CmsHtmlConverterOption> i = m_configuredHtmlConverters.iterator(); i.hasNext();) {
            CmsHtmlConverterOption converterOption = i.next();
            m_htmlConverters.put(converterOption.getName(), converterOption.getClassName());
        }
    }
private void initHtmlConverters ( ) { if ( m_configuredHtmlConverters . size ( ) == 0 ) { String classJTidy = CmsHtmlConverterJTidy . class . getName ( ) ; m_configuredHtmlConverters . add ( new CmsHtmlConverterOption ( CmsHtmlConverter . PARAM_ENABLED , classJTidy , true ) ) ; m_configuredHtmlConverters . add ( new CmsHtmlConverterOption ( CmsHtmlConverter . PARAM_XHTML , classJTidy , true ) ) ; m_configuredHtmlConverters . add ( new CmsHtmlConverterOption ( CmsHtmlConverter . PARAM_WORD , classJTidy , true ) ) ; m_configuredHtmlConverters . add ( new CmsHtmlConverterOption ( CmsHtmlConverter . PARAM_REPLACE_PARAGRAPHS , classJTidy , true ) ) ; } m_htmlConverters = new HashMap < String , String > ( m_configuredHtmlConverters . size ( ) ) ; for ( Iterator < CmsHtmlConverterOption > i = m_configuredHtmlConverters . iterator ( ) ; i . hasNext ( ) ; ) { CmsHtmlConverterOption converterOption = i . next ( ) ; m_htmlConverters . put ( converterOption . getName ( ) , converterOption . getClassName ( ) ) ; } }
Initialize the HTML converters.<p>

HTML converters are configured in the OpenCms <code>opencms-vfs.xml</code> configuration file.<p>

For legacy reasons, the default JTidy HTML converter has to be loaded if no explicit HTML converters
are configured in the configuration file.<p>