diff options
author | Thorvald Natvig <slicer@users.sourceforge.net> | 2009-10-20 11:31:02 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-10-28 09:24:25 (GMT) |
commit | de7de35082ec21d506a90e68cb30888540ec64cc (patch) | |
tree | 096c1a70d50d8ebe7f09dc737f9e8a19c8260190 /tests/auto/qtextdocument/qtextdocument.pro | |
parent | 08e5bae295204ac0cadc1dda6c7a01599f66a2bb (diff) | |
download | Qt-de7de35082ec21d506a90e68cb30888540ec64cc.zip Qt-de7de35082ec21d506a90e68cb30888540ec64cc.tar.gz Qt-de7de35082ec21d506a90e68cb30888540ec64cc.tar.bz2 |
Fix XML entities in QTextDocument::toHtml()
If a QTextDocument contains an anchor with a & in it, this & is not
escaped in the toHtml() function, meaning the resulting document
can't be parsed as XML as it will contain invalid entities.
Reviewed-by: Olivier Goffart
Merge-request: 1753
Diffstat (limited to 'tests/auto/qtextdocument/qtextdocument.pro')
-rw-r--r-- | tests/auto/qtextdocument/qtextdocument.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qtextdocument/qtextdocument.pro b/tests/auto/qtextdocument/qtextdocument.pro index d3ec45d..1e44a9c 100644 --- a/tests/auto/qtextdocument/qtextdocument.pro +++ b/tests/auto/qtextdocument/qtextdocument.pro @@ -1,4 +1,5 @@ load(qttest_p4) +QT += xml HEADERS += common.h SOURCES += tst_qtextdocument.cpp |