Flip < and > in String::xml_escape. Close #2511
Before > referred to < and < to >, which is incorrect...
This commit is contained in:
parent
eea52d44c7
commit
a7f0846a6b
@ -3119,8 +3119,8 @@ String String::xml_escape(bool p_escape_quotes) const {
|
|||||||
|
|
||||||
String str=*this;
|
String str=*this;
|
||||||
str=str.replace("&","&");
|
str=str.replace("&","&");
|
||||||
str=str.replace("<",">");
|
str=str.replace("<","<");
|
||||||
str=str.replace(">","<");
|
str=str.replace(">",">");
|
||||||
if (p_escape_quotes) {
|
if (p_escape_quotes) {
|
||||||
str=str.replace("'","'");
|
str=str.replace("'","'");
|
||||||
str=str.replace("\"",""");
|
str=str.replace("\"",""");
|
||||||
|
Loading…
Reference in New Issue
Block a user