Title
g

gabin

11/19/2018, 1:48 PM
is there method in kotlin that allows to unescape html chars? E.g convert ' -> ' , & as &(ampersand), % as % and so on
o

Olivier

11/19/2018, 2:31 PM
Escaping aims for a specific purpose. Here you need to escape for HTML, but someone else will escape for SQL, and someone else for another platform, and so on. I don't think Kotlin will offer escaping for every systems 🙂
Don't know what is your final goal, but there is an official library available on Github https://github.com/Kotlin/kotlinx.html Maybe it can help you.