ksvg / com.github.nwillc.ksvg / kotlin.String

Extensions for kotlin.String

(JS, JVM)

escapeHTML

Escapes special characters of a String for HTML output. Handles double quotes, greater than, less than, ampersand, and characters greater than eight bit.

fun String.escapeHTML(): String
(JS, JVM)

toAttributeName

fun String.toAttributeName(): String

usingAppendable

(JS) fun String.usingAppendable(function: <ERROR CLASS>.(CharSequence) -> Unit): String
(JVM) fun String.usingAppendable(function: Appendable.(CharSequence) -> Unit): String