summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/isode/stroke/serializer/xml/XMLTextNode.java')
-rw-r--r--src/com/isode/stroke/serializer/xml/XMLTextNode.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/isode/stroke/serializer/xml/XMLTextNode.java b/src/com/isode/stroke/serializer/xml/XMLTextNode.java
index b6940c4..fa1881e 100644
--- a/src/com/isode/stroke/serializer/xml/XMLTextNode.java
+++ b/src/com/isode/stroke/serializer/xml/XMLTextNode.java
@@ -10,13 +10,13 @@ package com.isode.stroke.serializer.xml;
public class XMLTextNode implements XMLNode {
- private final String text_;
+ private String text_;
public XMLTextNode(String text) {
text_ = text;
- text_.replaceAll("&", "&"); // Should come first
- text_.replaceAll("<", "&lt;");
- text_.replaceAll(">", "&gt;");
+ text_ = text_.replaceAll("&", "&amp;"); // Should come first
+ text_ = text_.replaceAll("<", "&lt;");
+ text_ = text_.replaceAll(">", "&gt;");
}
public String serialize() {