Conversations/src/main/java/eu/siacs/conversations/utils/XmlHelper.java
2014-10-22 15:47:11 -04:00

13 lines
358 B
Java

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;
}
}