escapeString

open fun escapeString(obj: Any): String(source)

Escapes the toString() representation of obj for use in a literal string. This is useful for interpolating variables into script strings, as well as in other situations.