Workspace 6.21.5
Static Public Member Functions | List of all members
XmlEntitiesHandler Class Reference

This class makes it easy to convert HTML strings back to plain texts.

#include <Workspace/Application/LanguageUtils/xmlentitieshandler.h>

Static Public Member Functions

static QString htmlToOnePlainTextLine (const QString &s)
 
static QString htmlToPlainText (const QString &s)
 

Member Function Documentation

◆ htmlToOnePlainTextLine()

static QString htmlToOnePlainTextLine ( const QString &  s)
inlinestatic
Parameters
sThe string to convert.
Returns
The string s with all HTML markup stripped out and all but the first line of plain text discarded.

◆ htmlToPlainText()

static QString htmlToPlainText ( const QString &  s)
inlinestatic
Parameters
sThe string to convert.
Returns
The string s with all HTML markup stripped out.