diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-09-01 13:51:49 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-09-01 14:03:21 +0200 |
commit | d42ea45b1c7356793aa55edf55baeaaf4cd3398f (patch) | |
tree | cff01f1eb743c873e930d28095de9d14322fba25 /src/eu/siacs/conversations/utils/XmlHelper.java | |
parent | 9ad5c6925d103f5d0a030bd7af76cb8d15551189 (diff) |
fixed #403
Diffstat (limited to '')
-rw-r--r-- | src/eu/siacs/conversations/utils/XmlHelper.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/utils/XmlHelper.java b/src/eu/siacs/conversations/utils/XmlHelper.java new file mode 100644 index 00000000..4dee07cf --- /dev/null +++ b/src/eu/siacs/conversations/utils/XmlHelper.java @@ -0,0 +1,12 @@ +package eu.siacs.conversations.utils; + +public class XmlHelper { + public static String encodeEntities(String content) { + content = content.replace("&", "&"); + content = content.replace("<", "<"); + content = content.replace(">", ">"); + content = content.replace("\"", """); + content = content.replace("'", "'"); + return content; + } +} |