From 892102528b7f577faa5df294efc0c6647d3ff1be Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Mon, 31 Dec 2018 14:22:14 -0700 Subject: [PATCH] Strip tags from aria-label --- lib/FormBuilder.lib.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; }