From 3a3f9dd8a706af569c5581b20dcfeff91a43b9d9 Mon Sep 17 00:00:00 2001 From: Ash Monsh Date: Sat, 5 Oct 2024 22:15:03 +0300 Subject: [PATCH] fix blade files --- .../rain/widgets/HeadingWidget.blade.php | 10 ++++++++-- .../themes/breeze/rain/widgets/HeadingWidget.blade.php | 10 ++++++++-- .../themes/daisy/rain/widgets/HeadingWidget.blade.php | 10 ++++++++-- 3 files changed, 24 insertions(+), 6 deletions(-) diff --git a/resources/views/themes/another-portfolio/rain/widgets/HeadingWidget.blade.php b/resources/views/themes/another-portfolio/rain/widgets/HeadingWidget.blade.php index d44e9a8..95b9ad5 100644 --- a/resources/views/themes/another-portfolio/rain/widgets/HeadingWidget.blade.php +++ b/resources/views/themes/another-portfolio/rain/widgets/HeadingWidget.blade.php @@ -1,3 +1,9 @@ -
- {!! $data['content'] !!} +
+ {!! + (new \Illuminate\Support\HtmlString( + str(strip_tags($data['content'])) + ->markdown() + )) + ->toHtml() + !!}
diff --git a/resources/views/themes/breeze/rain/widgets/HeadingWidget.blade.php b/resources/views/themes/breeze/rain/widgets/HeadingWidget.blade.php index d44e9a8..95b9ad5 100644 --- a/resources/views/themes/breeze/rain/widgets/HeadingWidget.blade.php +++ b/resources/views/themes/breeze/rain/widgets/HeadingWidget.blade.php @@ -1,3 +1,9 @@ -
- {!! $data['content'] !!} +
+ {!! + (new \Illuminate\Support\HtmlString( + str(strip_tags($data['content'])) + ->markdown() + )) + ->toHtml() + !!}
diff --git a/resources/views/themes/daisy/rain/widgets/HeadingWidget.blade.php b/resources/views/themes/daisy/rain/widgets/HeadingWidget.blade.php index d44e9a8..95b9ad5 100644 --- a/resources/views/themes/daisy/rain/widgets/HeadingWidget.blade.php +++ b/resources/views/themes/daisy/rain/widgets/HeadingWidget.blade.php @@ -1,3 +1,9 @@ -
- {!! $data['content'] !!} +
+ {!! + (new \Illuminate\Support\HtmlString( + str(strip_tags($data['content'])) + ->markdown() + )) + ->toHtml() + !!}