spring-framework / org.springframework.web.util / JavaScriptUtils / javaScriptEscape

javaScriptEscape

open static fun javaScriptEscape(input: String): String

Turn JavaScript special characters into escaped characters.

Parameters

input - the input string

Return
the string with escaped characters