diff --git a/src/core/src/main/java/io/github/lonamiwebs/stringlate/classes/resources/tags/ResTag.java b/src/core/src/main/java/io/github/lonamiwebs/stringlate/classes/resources/tags/ResTag.java index 29a808a..90a7287 100644 --- a/src/core/src/main/java/io/github/lonamiwebs/stringlate/classes/resources/tags/ResTag.java +++ b/src/core/src/main/java/io/github/lonamiwebs/stringlate/classes/resources/tags/ResTag.java @@ -271,7 +271,8 @@ public static String sanitizeContent(String content) { // Quotes are a bit special case '"': - if (i == 0 || i == length - 1) + if ((i == 0 && content.charAt(length - 1) == '"') || + (i == length - 1 && content.charAt(0) == '"')) sb.append('"'); else sb.append("\\\"");