mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-15 05:25:01 -05:00
13 lines
358 B
Java
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("<", "<");
|
|
content = content.replace(">", ">");
|
|
content = content.replace("\"", """);
|
|
content = content.replace("'", "'");
|
|
return content;
|
|
}
|
|
}
|