escape

fun escape(s: String): String

Produce an escaped variant of the specified string.

Return

An escaped string that is suitable for use as a literal in Java source.

Parameters

s

An arbitrary string.