mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-05-21 11:05:34 +00:00
🛠 Replace inline HTML sanitization with a custom Markdown component for consistency.
🛡 Add `DisallowedRawHtmlExtension` to Markdown config for enhanced security.
This commit is contained in:
+1
-1
@@ -75,7 +75,7 @@ return [
|
||||
* More info: https://commonmark.thephpleague.com/2.4/extensions/overview/
|
||||
*/
|
||||
'extensions' => [
|
||||
//
|
||||
League\CommonMark\Extension\DisallowedRawHtml\DisallowedRawHtmlExtension::class,
|
||||
],
|
||||
|
||||
/*
|
||||
|
||||
@@ -138,7 +138,7 @@ new class extends Component {
|
||||
{{ $projectProposal->name }}
|
||||
</h1>
|
||||
<x-markdown>
|
||||
{!! \Stevebauman\Purify\Facades\Purify::clean($projectProposal->description) !!}
|
||||
{!! $projectProposal->description !!}
|
||||
</x-markdown>
|
||||
</header>
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<div {{ $attributes }}>{!! \Stevebauman\Purify\Facades\Purify::clean($toHtml($slot)) !!}</div>
|
||||
Reference in New Issue
Block a user