JavaScriptEscape

Description

Escapes certain characters for use in JavaScript

Syntax

string JavaScriptEscape (string $string)



Parameter $string

Expected type: String
Description: The string to escape



Return value

Expected type: Escaped String
Description:


Notes

  • Escapes \r, \n, \t, \\, \',
Advertisement: