+ encode CR and LF for XML

This commit is contained in:
wmayer
2014-06-14 18:04:19 +02:00
parent 6201f1a74b
commit bb9db0b129

View File

@@ -126,8 +126,10 @@ std::string Property::encodeAttribute(const std::string& str) const
tmp += "&";
else if (*it == '>')
tmp += ">";
else if (*it == '\r')
tmp += "
";
else if (*it == '\n')
tmp += " ";
tmp += "
";
else
tmp += *it;
}