diff options
Diffstat (limited to 'server/src/xml_encode_decode.cc')
-rw-r--r-- | server/src/xml_encode_decode.cc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/server/src/xml_encode_decode.cc b/server/src/xml_encode_decode.cc index 5ed61f2..427e451 100644 --- a/server/src/xml_encode_decode.cc +++ b/server/src/xml_encode_decode.cc @@ -26,7 +26,7 @@ */ #include "xml_encode_decode.h" #include <string.h> - +/* char xml_map[][2][16] = { { "&", "&" }, // & must be first @@ -36,6 +36,17 @@ char xml_map[][2][16] = { "<", "<" }, { "", "" } // End marker }; +*/ + +char xml_map[][2][16] = + { + { "&", "&" }, // & must be first + { "\'", "'" }, + { "\"", """ }, + { ">", ">" }, + { "<", "<" }, + { "", "" } // End marker + }; #define MAX_MAPS 5 |