encodeURI(str: String, enc: String)

pull/457/head
gedoor 4 years ago
parent dd4e0af4ff
commit 44c7a38e3d
  1. 8
      app/src/main/java/io/legado/app/help/JsExtensions.kt

@ -175,6 +175,14 @@ interface JsExtensions {
}
}
fun encodeURI(str: String, enc: String): String {
return try {
URLEncoder.encode(str, enc)
} catch (e: Exception) {
""
}
}
fun htmlFormat(str: String): String {
return str.htmlFormat()
}

Loading…
Cancel
Save