QString editHtml(const QString& s, const QString& title) { TextEditor editor; editor.setWindowTitle(title); editor.setHtml(s); editor.exec(); return editor.toHtml(); }