String (@NotNull String message) { List<String> strings = new ArrayList<>(); for (String string : StringUtil.split(message, XML_CODE_MARKER.first)) { if (string.contains(XML_CODE_MARKER.second)) { strings.addAll(StringUtil.split(string, XML_CODE_MARKER.second, false)); } else { strings.add(string); } } StringBuilder builder = new StringBuilder(); for (String string : strings) { if (string.contains(XML_CODE_MARKER.second)) { builder.append(string.replace(XML_CODE_MARKER.second, "")); } else { builder.append(StringUtil.unescapeXmlEntities(string)); } } return builder.toString(); }