+ encode CR and LF for XML
This commit is contained in:
parent
bfae053eb4
commit
07c64e206d
|
@ -126,8 +126,10 @@ std::string Property::encodeAttribute(const std::string& str) const
|
||||||
tmp += "&";
|
tmp += "&";
|
||||||
else if (*it == '>')
|
else if (*it == '>')
|
||||||
tmp += ">";
|
tmp += ">";
|
||||||
|
else if (*it == '\r')
|
||||||
|
tmp += "
";
|
||||||
else if (*it == '\n')
|
else if (*it == '\n')
|
||||||
tmp += " ";
|
tmp += "
";
|
||||||
else
|
else
|
||||||
tmp += *it;
|
tmp += *it;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user