X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2FXmlJsCode.php;h=35a06071a29a9dd1d4da203b65c6fa6493e8748d;hb=feaf1daca9a0614efd35278e196a0fc18cb381a3;hp=d1cd037c9844b2e86ca7bc63720fb2c161a00a90;hpb=f7e1770fb832aa77bf4e16ce8cc815f2b24dd10d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/XmlJsCode.php b/includes/XmlJsCode.php index d1cd037c98..35a06071a2 100644 --- a/includes/XmlJsCode.php +++ b/includes/XmlJsCode.php @@ -23,11 +23,12 @@ * interpret a given string as being a JavaScript expression, instead of string * data. * - * Example: + * @par Example: + * @code + * Xml::encodeJsVar( new XmlJsCode( 'a + b' ) ); + * @encode * - * Xml::encodeJsVar( new XmlJsCode( 'a + b' ) ); - * - * Returns "a + b". + * This returns "a + b". * * @note As of 1.21, XmlJsCode objects cannot be nested inside objects or arrays. The sole * exception is the $args argument to Xml::encodeJsCall() because Xml::encodeJsVar() is