aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/thedevstack/conversationsplus/utils/XmlHelper.java
blob: 1287f73f6f76b95be293527732d4b72e7669565f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package de.thedevstack.conversationsplus.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;
	}
}