* Sync with the trunk.

This commit is contained in:
Eelco Dolstra 2010-05-07 14:46:47 +00:00
commit 83dfa89870
13 changed files with 71 additions and 28 deletions

View file

@ -91,6 +91,7 @@ void XMLWriter::writeAttrs(const XMLAttrs & attrs)
char c = i->second[j];
if (c == '"') output << "&quot;";
else if (c == '<') output << "&lt;";
else if (c == '>') output << "&gt;";
else if (c == '&') output << "&amp;";
/* Escape newlines to prevent attribute normalisation (see
XML spec, section 3.3.3. */