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