From 39e58e4593f54a65f810e73728fe2490958fcba2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Thu, 26 Nov 2009 16:11:55 +0100
Subject: Escape '>' to avoid trouble.


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('&', "&amp;"); // Should come first
 				text_.replaceAll('<', "&lt;");
+				text_.replaceAll('>', "&gt;");
 			}
 
 			String serialize() {
@@ -19,5 +19,3 @@ namespace Swift {
 			String text_;
 	};
 }
-
-#endif
-- 
cgit v0.10.2-6-g49f6