+ handle single quote when writing XML
This commit is contained in:
@@ -289,12 +289,16 @@ std::string DynamicProperty::encodeAttribute(const std::string& str) const
|
||||
tmp += "<";
|
||||
else if (*it == '"')
|
||||
tmp += """;
|
||||
else if (*it == '\'')
|
||||
tmp += "'";
|
||||
else if (*it == '&')
|
||||
tmp += "&";
|
||||
else if (*it == '>')
|
||||
tmp += ">";
|
||||
else if (*it == '\r')
|
||||
tmp += "
";
|
||||
else if (*it == '\n')
|
||||
tmp += " ";
|
||||
tmp += "
";
|
||||
else
|
||||
tmp += *it;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user