You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdelibs/kdecore/tests/kcharsetstest.cpp

13 lines
224 B

#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;
}