module

TiktokPassport::Marionette::Javascript

Constants

JAVASCRIPT_ESCAPE_MAP = {"\\" => "\\\\", "</" => "<\\/", "\r\n" => "\\n", "\n" => "\\n", "\r" => "\\n", "\"" => "\\\"", "'" => "\\'", "`" => "\\`", "$" => "\\$", "\u2028" => "&#x2028;", "\u2029" => "&#x2029;"}
JAVASCRIPT_ESCAPE_REGEX = /(\\|<\/|\r\n|\x{2028}|\x{2029}|[\n\r"']|[`]|[$])/

Class methods

escape_javascript(script : String)
Source
sign(url : String) : String
Source