diff --git a/lib/FormBuilder.lib.php b/lib/FormBuilder.lib.php index a07919b..35e8fe3 100644 --- a/lib/FormBuilder.lib.php +++ b/lib/FormBuilder.lib.php @@ -181,6 +181,7 @@ HTMLTOP; if ($item['type'] != "checkbox") { $itemlabel = ""; } + $strippedlabel = strip_tags($item['label']); $itemhtml .= <<
@@ -193,7 +194,7 @@ ITEMTOP; switch ($item['type']) { case "select": $itemhtml .= << SELECT; foreach ($item['options'] as $value => $label) { $selected = ""; @@ -207,14 +208,14 @@ SELECT; case "checkbox": $itemhtml .= << - +
CHECKBOX; break; default: $itemhtml .= << +\n INPUT; break; }