diff --git a/app/templates/element/form/htmlInject.php b/app/templates/element/form/htmlInject.php index 465a76c77..9b043b6d4 100644 --- a/app/templates/element/form/htmlInject.php +++ b/app/templates/element/form/htmlInject.php @@ -26,11 +26,10 @@ * @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) */ - declare(strict_types=1); // View vars -// $content - the text or markup to be rendered +// $content - the text or markup to be rendered OR an element spec array // $type - accepts "subtitle" or "html" // $vv_action @@ -43,7 +42,16 @@
  • - - + + create()). + if (is_array($content) && !empty($content['element'])) { + $params = $content['params'] ?? []; + echo $this->element($content['element'], $params); + } else { + // Otherwise treat as raw HTML/text. + echo $content; + } + ?>
  • \ No newline at end of file