diff --git a/lib/HTMLUtils.php b/lib/HTMLUtils.php index 57421177..674d067f 100644 --- a/lib/HTMLUtils.php +++ b/lib/HTMLUtils.php @@ -40,11 +40,7 @@ CARD; // If we don't have any parameter for the bridge, we print a generic form to load it. if(count($bridgeElement->parameters) == 0) { - $card .= << - - -CARD; + $card .= HTMLUtils::getFormHeader($bridgeName); if ($isActive){ $card .= HTMLUtils::getHelperButtonsFormat($formats); @@ -72,11 +68,7 @@ CARD; if(!is_numeric($parameterName)) $card .= '
' . $parameterName . '
' . PHP_EOL; - $card .= << - - -CARD; + $card .= HTMLUtils::getFormHeader($bridgeName); foreach($parameter as $inputEntry) { $additionalInfoString = ''; @@ -128,6 +120,14 @@ CARD; return $card; } + + private static function getFormHeader($bridge){ + return << + + +EOD; + } } class HTMLSanitizer {