X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FXmlJsCode.php;h=1b90a1f20d7df1bbd71fc701632e7ac9511d1764;hb=5fa4cdf860c79b32ab6ef034c6d9420c2727f695;hp=d1cd037c9844b2e86ca7bc63720fb2c161a00a90;hpb=022d6ab817b3e66262d97317e25644fc5b4594af;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/XmlJsCode.php b/includes/XmlJsCode.php index d1cd037c98..1b90a1f20d 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' ) ); + * @endcode * - * 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