aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/utils/XmlHelper.java
blob: 4dee07cf777c8b98dc81162b36ff7e489c3d9858 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package eu.siacs.conversations.utils;

public class XmlHelper {
	public static String encodeEntities(String content) {
		content = content.replace("&", "&");
		content = content.replace("<", "&lt;");
		content = content.replace(">", "&gt;");
		content = content.replace("\"", "&quot;");
		content = content.replace("'", "&apos;");
		return content;
	}
}