Class to handle compiling template function calls for "jsescape".
This function escapes the first argument for JavaScript. Note that the first argument is a value, not a variable reference. Variables used within will be HTML escaped first, unless you use raw.
The second argument controls the context for escaping (single, double).
package | XenForo_Template |
---|
compile(\XenForo_Template_Compiler $compiler, string $function, array $arguments, array $options) : string
string
Name of the function called
array
Arguments to the function (should have at least 1)
array
Compilation options
string