escape

external fun escape(string: String): String(source)

MDN Reference