diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-11-26 15:11:55 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-11-26 15:12:42 (GMT) |
commit | 39e58e4593f54a65f810e73728fe2490958fcba2 (patch) | |
tree | 8f740529fb5b3a972387cb65c03bfdff67253081 /Swiften/Serializer | |
parent | 808a8047237d663e770cb8aec45c7978862b09ac (diff) | |
download | swift-39e58e4593f54a65f810e73728fe2490958fcba2.zip swift-39e58e4593f54a65f810e73728fe2490958fcba2.tar.bz2 |
Escape '>' to avoid trouble.
Diffstat (limited to 'Swiften/Serializer')
-rw-r--r-- | Swiften/Serializer/XML/XMLTextNode.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Swiften/Serializer/XML/XMLTextNode.h b/Swiften/Serializer/XML/XMLTextNode.h index a142325..87dda53 100644 --- a/Swiften/Serializer/XML/XMLTextNode.h +++ b/Swiften/Serializer/XML/XMLTextNode.h @@ -1,5 +1,4 @@ -#ifndef SWIFTEN_XMLTextNode_H -#define SWIFTEN_XMLTextNode_H +#pragma once #include "Swiften/Serializer/XML/XMLNode.h" @@ -9,6 +8,7 @@ namespace Swift { XMLTextNode(const String& text) : text_(text) { text_.replaceAll('&', "&"); // Should come first text_.replaceAll('<', "<"); + text_.replaceAll('>', ">"); } String serialize() { @@ -19,5 +19,3 @@ namespace Swift { String text_; }; } - -#endif |