escape
escape()
Section titled “escape()”Category: String
Escapes special characters in the input string for the specified format
Signature
Section titled “Signature”- Return type:
string - Parameters:
formatstring— Escape format (‘html’, ‘json’, ‘xml’)
Examples
Section titled “Examples”'<tag>'.escape('html')'"text"'.escape('json')