From d36462eb00a319e49df3934614641bd1867e1ab1 Mon Sep 17 00:00:00 2001 From: skodak Date: Sat, 6 Jan 2007 21:22:02 +0000 Subject: [PATCH] MDL-7861 xhtml strict fixes - do not add label for static element in formslib, fixed wrong regex in previous commit --- lib/formslib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/formslib.php b/lib/formslib.php index f2a7cfd40f..09962abd54 100644 --- a/lib/formslib.php +++ b/lib/formslib.php @@ -1360,7 +1360,7 @@ class MoodleQuickForm_Renderer extends HTML_QuickForm_Renderer_Tableless{ } if ($element->getType() == 'static') { - $html = preg_replace('||i', '', $html); //xhtml compliance - no label for static content + $html = preg_replace('/()|(<\/label>)/i', '', $html); //xhtml compliance - no label for static content } $this->_templates[$element->getName()] = $html; if (!is_null($element->getAttribute('id'))) { -- 2.39.5