summaryrefslogtreecommitdiff
path: root/hercules/code/stringutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'hercules/code/stringutils.py')
-rw-r--r--hercules/code/stringutils.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/hercules/code/stringutils.py b/hercules/code/stringutils.py
index 73db611..986792d 100644
--- a/hercules/code/stringutils.py
+++ b/hercules/code/stringutils.py
@@ -24,9 +24,9 @@ def stripQuotes2(data):
return data
def strToXml(data):
- data = data.replace("&", "&");
- data = data.replace("<", "&lt;");
- data = data.replace(">", "&gt;");
+ data = data.replace("&", "&amp;")
+ data = data.replace("<", "&lt;")
+ data = data.replace(">", "&gt;")
return data
def stripNewLine(data):
@@ -49,11 +49,11 @@ def stripWindows(data):
return data
def escapeSqlStr(data):
- data = data.replace("\\", "\\\\");
- data = data.replace("'", "\\'");
- data = data.replace("`", "\\`");
- data = data.replace("{", "\\{");
- data = data.replace("}", "\\}");
+ data = data.replace("\\", "\\\\")
+ data = data.replace("'", "\\'")
+ data = data.replace("`", "\\`")
+ data = data.replace("{", "\\{")
+ data = data.replace("}", "\\}")
return data
def removeGat(data):