From 755d972b5c01557015e8e3216375dfe68f2749ce Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Mon, 2 Apr 2007 14:04:29 +0000 Subject: [PATCH] * New shortcut function --- includes/Xml.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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 * -- 2.20.1