From: Niklas Laxström Date: Mon, 2 Apr 2007 14:04:29 +0000 (+0000) Subject: * New shortcut function X-Git-Tag: 1.31.0-rc.0~53499 X-Git-Url: http://git.cyclocoop.org/%22.%24redirect_annul.%22?a=commitdiff_plain;h=755d972b5c01557015e8e3216375dfe68f2749ce;p=lhc%2Fweb%2Fwiklou.git * New shortcut function --- diff --git a/includes/Xml.php b/includes/Xml.php index 4485626f85..0fedcfa08d 100644 --- a/includes/Xml.php +++ b/includes/Xml.php @@ -61,6 +61,14 @@ class Xml { public static function openElement( $element, $attribs = null ) { return self::element( $element, $attribs, null ); } public static function closeElement( $element ) { return ""; } + /** + * Same as element, but does not escape contents. Handy when the + * content you have is already valid xml. + */ + public static function tags( $element, $attribs = null, $contents ) { + return self::element( $element, $attribs, null ) . $contents . ""; + } + /** * Create a namespace selector *