diff --git a/feature/trip-planner/ui/src/androidMain/kotlin/HtmlText.kt b/feature/trip-planner/ui/src/androidMain/kotlin/xyz/ksharma/krail/trip/planner/ui/alerts/HtmlText.kt similarity index 100% rename from feature/trip-planner/ui/src/androidMain/kotlin/HtmlText.kt rename to feature/trip-planner/ui/src/androidMain/kotlin/xyz/ksharma/krail/trip/planner/ui/alerts/HtmlText.kt diff --git a/feature/trip-planner/ui/src/iosMain/kotlin/HtmlText.kt b/feature/trip-planner/ui/src/iosMain/kotlin/HtmlText.kt deleted file mode 100644 index 06f39210..00000000 --- a/feature/trip-planner/ui/src/iosMain/kotlin/HtmlText.kt +++ /dev/null @@ -1,30 +0,0 @@ -package xyz.ksharma.krail.trip.planner.ui.alerts - -import androidx.compose.foundation.clickable -import androidx.compose.runtime.Composable -import androidx.compose.ui.Modifier -import androidx.compose.ui.graphics.Color -import xyz.ksharma.krail.taj.components.Text - -@Composable -actual fun HtmlText( - text: String, - modifier: Modifier, - onClick: () -> Unit, - color: Color, - urlColor: Color, -) { - Text(text = replaceHtmlTags(text), modifier = Modifier.clickable { onClick() }, color = color) -} - -// TODO - A workaround for iOS until https://issuetracker.google.com/issues/139326648 is fixed. -private fun replaceHtmlTags(html: String): String { - return html - .replace("", "\n") - .replace("", "\n") - .replace("", "\n") + .replace("
  • ", "") + .replace("