fix: sanitize html error messages

This commit is contained in:
peaklabs-dev
2025-01-07 13:38:21 +01:00
parent c789ed6003
commit 70f93b1513

View File

@@ -6,7 +6,7 @@
<p class="mt-2 text-lg leading-7 text-neutral-300">There has been an error with the following error message:</p>
@if ($exception->getMessage() !== '')
<div class="mt-6 text-sm text-red-500">
{!! $exception->getMessage() !!}
{!! Str::sanitize($exception->getMessage()) !!}
</div>
@endif
<div class="flex items-center mt-10 gap-6">