aboutsummaryrefslogtreecommitdiff
path: root/app/src/test/kotlin/com/pitchedapps/frost/utils/StringEscapeUtilsTest.kt
blob: 86bd4ce50e28b5d1e0da647ef6b2ebce6505319b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.pitchedapps.frost.utils

import org.junit.Test
import kotlin.test.assertEquals

/**
 * Created by Allan Wang on 11/03/18.
 */
class StringEscapeUtilsTest {

    @Test
    fun utf() {
        val escaped = "\\u003Chead> color=\\\"#3b5998\\\""
        assertEquals("<head> color=\"#3b5998\"", escaped.unescapeHtml())
    }
}