RTEditor/src/main/java/com/onegravity/rteditor/converter/tagsoup/HTMLWriter.java
@Override
    public void comment(char[] ch, int start, int length) throws SAXException {
        write("<!--");
        for (int i = start; i < start + length; i++) {
            write(ch[i]);
            if (ch[i] == '-' && i + 1 <= start + length && ch[i + 1] == '-')
                write(' ');
        }
        write("-->");
    }
@Override
    public void comment(char[] ch, int start, int length) throws SAXException {
        write("<!--");
        for (int i = start; i < start + length; i++) {
            write(ch[i]);
            if (ch[i] == '-' && i + 1 <= start + length && ch[i + 1] == '-')
                write(' ');
        }
        write("-->");
    }
@ Override public void comment ( char [ ] ch , int start , int length ) throws SAXException { write ( "<!--" ) ; for ( int i = start ; i < start + length ; i ++ ) { write ( ch [ i ] ) ; if ( ch [ i ] == ' ' && i + 1 <= start + length && ch [ i + 1 ] == ' ' ) write ( ' ' ) ; } write ( "-->" ) ; }
//////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////