Support linebreaks in bookmark description

This commit is contained in:
Annika Backstrom 2024-06-03 09:40:26 +01:00
parent abcebef520
commit 0ddcb52f18
Signed by: annika
GPG Key ID: 3561F004DE1D9AFE

View File

@ -11,7 +11,7 @@
<p class="bookmark-href"><a href="{{ $bookmark->href }}">{{ $bookmark->href }}</a></p>
@if (!empty($bookmark->description))
<div class="bookmark-description">
<p>{{ strip_tags($bookmark->description) }}</p>
<p>{!! nl2br(htmlspecialchars($bookmark->description)) !!}</p>
</div>
@endif
<p class="bookmark-date">