summaryrefslogtreecommitdiffstats
path: root/kdecore/tests/kcharsetstest.cpp
blob: de281d3d930ea99065ea0788fcc54e2093d51d30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

#include <kcharsets.h>

#include <assert.h>

int main()
{
    QString input( "&lt;Hello &amp;World&gt;" );
    QString output = KCharsets::resolveEntities( input );
    assert( output == "<Hello &World>" );
    return 0;
}