--- a/crowdin/src/main/java/com/crowdin/platform/CrowdinResources.kt
+++ b/crowdin/src/main/java/com/crowdin/platform/CrowdinResources.kt
@@ -175,4 +175,4 @@ fun String.fromHtml(): CharSequence =
Html.fromHtml(this)
} else {
Html.fromHtml(this, Html.FROM_HTML_MODE_COMPACT)
- }
+ }.replace(Regex.fromLiteral("\\n"), "\n")
diff --git a/crowdin/src/main/java/com/crowdin/platform/util/TextUtils.kt b/crowdin/src/main/java/com/crowdin/platform/util/TextUtils.kt
index 2cccca2..338fa92 100644
--- a/crowdin/src/main/java/com/crowdin/platform/util/TextUtils.kt
+++ b/crowdin/src/main/java/com/crowdin/platform/util/TextUtils.kt
@@ -18,7 +18,7 @@ internal object TextUtils {
}
}
- return text
+ return text?.replace(Regex.fromLiteral("\\n"), "\n")
}
fun getTextAttributeKey(res: Resources, attrs: AttributeSet, index: Int): String? {