mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-04-16 21:28:42 +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:
@@ -75,7 +75,7 @@ return [
|
|||||||
* More info: https://commonmark.thephpleague.com/2.4/extensions/overview/
|
* More info: https://commonmark.thephpleague.com/2.4/extensions/overview/
|
||||||
*/
|
*/
|
||||||
'extensions' => [
|
'extensions' => [
|
||||||
//
|
League\CommonMark\Extension\DisallowedRawHtml\DisallowedRawHtmlExtension::class,
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ new class extends Component {
|
|||||||
{{ $projectProposal->name }}
|
{{ $projectProposal->name }}
|
||||||
</h1>
|
</h1>
|
||||||
<x-markdown>
|
<x-markdown>
|
||||||
{!! \Stevebauman\Purify\Facades\Purify::clean($projectProposal->description) !!}
|
{!! $projectProposal->description !!}
|
||||||
</x-markdown>
|
</x-markdown>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|||||||
1
resources/views/vendor/markdown/markdown.blade.php
vendored
Normal file
1
resources/views/vendor/markdown/markdown.blade.php
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<div {{ $attributes }}>{!! \Stevebauman\Purify\Facades\Purify::clean($toHtml($slot)) !!}</div>
|
||||||
Reference in New Issue
Block a user