diff --git a/vector/src/androidTest/java/im/vector/app/features/html/EventHtmlRendererTest.kt b/vector/src/androidTest/java/im/vector/app/features/html/EventHtmlRendererTest.kt index a1b74778a5..41c0f51322 100644 --- a/vector/src/androidTest/java/im/vector/app/features/html/EventHtmlRendererTest.kt +++ b/vector/src/androidTest/java/im/vector/app/features/html/EventHtmlRendererTest.kt @@ -71,5 +71,12 @@ class EventHtmlRendererTest { result shouldBeEqualTo "[code][italic]italic[/italic] [bold]bold[/bold][/code]" } + @Test + fun processesHtmlEntities() { + val result = """& < > ' """".renderAsTestSpan() + + result shouldBeEqualTo """& < > ' """" + } + private fun String.renderAsTestSpan() = renderer.render(this).toSpannable().toTestSpan() }