diff --git a/app/Views/Components/Forms/Section.php b/app/Views/Components/Forms/Section.php index cf736744..eedd05a5 100644 --- a/app/Views/Components/Forms/Section.php +++ b/app/Views/Components/Forms/Section.php @@ -16,13 +16,13 @@ class Section extends Component public function render(): string { - $subtitle = $this->subtitle === null ? '' : '
' . $this->subtitle . '
'; + $subtitle = $this->subtitle === null ? '' : '' . $this->subtitle . '
'; return << + HTML; } diff --git a/app/Views/Components/Forms/XMLEditor.php b/app/Views/Components/Forms/XMLEditor.php index c3ec19ba..fded2001 100644 --- a/app/Views/Components/Forms/XMLEditor.php +++ b/app/Views/Components/Forms/XMLEditor.php @@ -14,11 +14,17 @@ class XMLEditor extends FormComponent 'class' => 'textarea', ]; + protected string $content = ''; + + public function setContent(string $value): void + { + $this->content = htmlspecialchars_decode($value); + } + public function render(): string { - $content = $this->slot; $this->attributes['slot'] = 'textarea'; - $textarea = form_textarea($this->attributes, $content); + $textarea = form_textarea($this->attributes, $this->content); return <<{$textarea} diff --git a/themes/cp_admin/_partials/_user_info.php b/themes/cp_admin/_partials/_user_info.php index eafb73b4..613aea14 100644 --- a/themes/cp_admin/_partials/_user_info.php +++ b/themes/cp_admin/_partials/_user_info.php @@ -26,7 +26,7 @@