summaryrefslogtreecommitdiffstats
path: root/kbarcode/tokenprovider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbarcode/tokenprovider.cpp')
-rw-r--r--kbarcode/tokenprovider.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kbarcode/tokenprovider.cpp b/kbarcode/tokenprovider.cpp
index f0d4e0b..dfbe9a6 100644
--- a/kbarcode/tokenprovider.cpp
+++ b/kbarcode/tokenprovider.cpp
@@ -915,10 +915,10 @@ const TQString TokenProvider::createSerial()
TQString TokenProvider::unescapeText( const TQString & t )
{
TQString tmp = t;
- tmp = tmp.replace( DSREPLACE( "&lt;" ), "<" );
- tmp = tmp.replace( DSREPLACE( "&gt;" ), ">" );
- tmp = tmp.replace( DSREPLACE( "&amp;" ), "&" );
- tmp = tmp.replace( DSREPLACE( "&quot;" ), "\"" );
+ tmp = tmp.replace( "&lt;", "<" );
+ tmp = tmp.replace( "&gt;", ">" );
+ tmp = tmp.replace( "&amp;", "&" );
+ tmp = tmp.replace( "&quot;", "\"" );
return tmp;
}
@@ -926,11 +926,11 @@ TQString TokenProvider::unescapeText( const TQString & t )
TQString TokenProvider::escapeText( const TQString & t )
{
TQString tmp = t;
- tmp = tmp.replace( DSREPLACE( "<" ), "&lt;" );
- tmp = tmp.replace( DSREPLACE( ">" ), "&gt;" );
- tmp = tmp.replace( DSREPLACE( "&" ), "&amp;" );
- tmp = tmp.replace( DSREPLACE( "\"" ), "&quot;" );
- tmp = tmp.replace( DSREPLACE( "\n" ), "<br />" );
+ tmp = tmp.replace( "<", "&lt;" );
+ tmp = tmp.replace( ">", "&gt;" );
+ tmp = tmp.replace( "&", "&amp;" );
+ tmp = tmp.replace( "\"", "&quot;" );
+ tmp = tmp.replace( "\n", "<br />" );
return tmp;
}