summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2017-12-24 09:29:07 (GMT)
committerGitHub <noreply@github.com>2017-12-24 09:29:07 (GMT)
commita20245cfcab4d6ffdf5b92e256017f3cb4c66497 (patch)
tree0fdac8645cd61a48eb57edfb89b37017fa66436c /src
parentcf15b90dfa540e5ce74ffbc2b961417cd480ce0d (diff)
parentb6a7abf02652b74872b9c676fcfa545e18d9bde7 (diff)
downloadDoxygen-a20245cfcab4d6ffdf5b92e256017f3cb4c66497.zip
Doxygen-a20245cfcab4d6ffdf5b92e256017f3cb4c66497.tar.gz
Doxygen-a20245cfcab4d6ffdf5b92e256017f3cb4c66497.tar.bz2
Merge pull request #623 from mosra/xml-encode-invalid-characters
Encode invalid XML characters instead of skipping them
Diffstat (limited to 'src')
-rw-r--r--src/xmlgen.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp
index 1b03c3b..56e107b 100644
--- a/src/xmlgen.cpp
+++ b/src/xmlgen.cpp
@@ -136,7 +136,9 @@ inline void writeXMLCodeString(FTextStream &t,const char *s, int &col)
case 11: case 12: case 13: case 14: case 15: case 16: case 17: case 18:
case 19: case 20: case 21: case 22: case 23: case 24: case 25: case 26:
case 27: case 28: case 29: case 30: case 31:
- break; // skip invalid XML characters (see http://www.w3.org/TR/2000/REC-xml-20001006#NT-Char)
+ // encode invalid XML characters (see http://www.w3.org/TR/2000/REC-xml-20001006#NT-Char)
+ t << "<sp value=\"" << int(c) << "\"/>";
+ break;
default: s=writeUtf8Char(t,s-1); col++; break;
}
}