aboutsummaryrefslogtreecommitdiff
path: root/core/ustring.cpp
diff options
context:
space:
mode:
authorBojidar Marinov2015-09-23 21:33:31 +0300
committerBojidar Marinov2015-09-23 21:33:31 +0300
commita7f0846a6bda8ec789288f1ed3db2d6d82a72322 (patch)
treed68376351b7b3cda0e73455cb6b65fbc7e486881 /core/ustring.cpp
parenteea52d44c797663aad85686ecb6e0b471a989e58 (diff)
downloadgodot-a7f0846a6bda8ec789288f1ed3db2d6d82a72322.tar.gz
godot-a7f0846a6bda8ec789288f1ed3db2d6d82a72322.tar.zst
godot-a7f0846a6bda8ec789288f1ed3db2d6d82a72322.zip
Diffstat (limited to 'core/ustring.cpp')
-rw-r--r--core/ustring.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/ustring.cpp b/core/ustring.cpp
index ff7c8984f..f6d8e6c1f 100644
--- a/core/ustring.cpp
+++ b/core/ustring.cpp
@@ -3119,8 +3119,8 @@ String String::xml_escape(bool p_escape_quotes) const {
String str=*this;
str=str.replace("&","&");
- str=str.replace("<","&gt;");
- str=str.replace(">","&lt;");
+ str=str.replace("<","&lt;");
+ str=str.replace(">","&gt;");
if (p_escape_quotes) {
str=str.replace("'","&apos;");
str=str.replace("\"","&quot;");