RTEditor/src/main/java/com/onegravity/rteditor/converter/ConverterHtmlToText.java
public static RTPlainText convert(RTHtml<? extends RTImage, ? extends RTAudio, ? extends RTVideo> input) {
        String result = Html.fromHtml(input.getText(), null, new HtmlToTextTagHandler())
                .toString()
                .replace(PREVIEW_OBJECT_CHARACTER, PREVIEW_OBJECT_REPLACEMENT)
                .replace(NBSP_CHARACTER, NBSP_REPLACEMENT);
        return new RTPlainText(result);
    }
public static RTPlainText convert(RTHtml<? extends RTImage, ? extends RTAudio, ? extends RTVideo> input) {
        String result = Html.fromHtml(input.getText(), null, new HtmlToTextTagHandler())
                .toString()
                .replace(PREVIEW_OBJECT_CHARACTER, PREVIEW_OBJECT_REPLACEMENT)
                .replace(NBSP_CHARACTER, NBSP_REPLACEMENT);
        return new RTPlainText(result);
    }
public static RTPlainText convert ( RTHtml < ? extends RTImage , ? extends RTAudio , ? extends RTVideo > input ) { String result = Html . fromHtml ( input . getText ( ) , null , new HtmlToTextTagHandler ( ) ) . toString ( ) . replace ( PREVIEW_OBJECT_CHARACTER , PREVIEW_OBJECT_REPLACEMENT ) . replace ( NBSP_CHARACTER , NBSP_REPLACEMENT ) ; return new RTPlainText ( result ) ; }
space
space