MediaWiki
1.23.2
|
A wrapper class which causes Xml::encodeJsVar() and Xml::encodeJsCall() to interpret a given string as being a JavaScript expression, instead of string data. More...
Public Member Functions | |
__construct ( $value) | |
Public Attributes | |
$value | |
A wrapper class which causes Xml::encodeJsVar() and Xml::encodeJsCall() to interpret a given string as being a JavaScript expression, instead of string data.
Example:
Xml::encodeJsVar( new XmlJsCode( 'a + b' ) );
Returns "a + b".