Details
-
Suggestion
-
Resolution: Invalid
-
P2: Important
-
None
-
5.9.8, 5.12.8, 5.14.2
Description
User contacted Qt support about following:
"
XML has 5 special characters >, <, &, ' and ", and they should be escaped when written to XML file as >, <, &, ' and " correspondingly.
However, when using QDomElement::setAttribute to write strings containing these special characters, > and ' are not escaped, though <, &, and " are escaped correctly.
"
Qt Support tested this and with QDomElement::setAttribute("attribute","> < & ' ") looks like
"> < & ' " in XML file.