@Override
    public String translate(String text, String targetLanguage) throws TikaException, IOException {
        return this.translate(text, null, targetLanguage);
    }
Set the text format to use (plain/html)

@param format Text format setting, either plain or html
tika-translate/src/main/java/org/apache/tika/language/translate/impl/YandexTranslator.java