Код: Выделить всё
@php
use HTMLPurifier as HTMLPurifier;
use HTMLPurifier_Config as HTMLPurifier_Config;
$config = HTMLPurifier_Config::createDefault();
$purifier = new HTMLPurifier($config);
$cleanDescription = $purifier->purify(html_entity_decode($task->description));
@endphp
A new task has been assigned to you: balh blah blah
Account: {{ $task->name }}
(... some code ...)
Description:
{{-- {{ dd($task->description) }}--}}
{!! html_entity_decode($task->description) !!}
{{--{!! $cleanDescription !!}
--}}
Подробнее здесь: https://stackoverflow.com/questions/796 ... -mail-view
Мобильная версия