Ksoup is a lightweight Kotlin Multiplatform library for parsing HTML, extracting HTML tags, attributes, and text, and encoding and decoding HTML entities.
class KsoupTest {
@Test
fun rsquo() {
val text = "laptop, it’s probably"
val expected = "laptop, it’s probably"
assertEquals(expected, KsoupEntities.decodeHtml(text))
}
}
Output:
Expected :laptop, it’s probably
Actual :laptop, it’s probably
Example test
Output: