diff options
-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 |