summaryrefslogtreecommitdiffstats
path: root/kwordquiz/src/kvtmlwriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kwordquiz/src/kvtmlwriter.cpp')
-rw-r--r--kwordquiz/src/kvtmlwriter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kwordquiz/src/kvtmlwriter.cpp b/kwordquiz/src/kvtmlwriter.cpp
index 787cabab..94dce65f 100644
--- a/kwordquiz/src/kvtmlwriter.cpp
+++ b/kwordquiz/src/kvtmlwriter.cpp
@@ -81,9 +81,9 @@ KVTMLWriter::~KVTMLWriter()
TQString KVTMLWriter::escape( const TQString & s)
{
TQString result = s;
- result.replace(TQChar('&'), "&"); //must be done first
- result.replace(TQChar('<'), "&lt;");
- result.replace(TQChar('>'), "&gt;");
+ result.tqreplace(TQChar('&'), "&amp;"); //must be done first
+ result.tqreplace(TQChar('<'), "&lt;");
+ result.tqreplace(TQChar('>'), "&gt;");
return result;
}