test escape()Test escape() function:
QString plain = "#include <QtCore>" QString html = Qt::escape(plain); // html == "#include <QtCore>" and convertFromPlainText()convertFromPlainText() function:
QString Qt::convertFromPlainText ( const QString & plain, WhiteSpaceMode mode = WhiteSpacePre )