Answer the question
In order to leave comments, you need to log in
How to make Blade template understand html tags? Laravel5?
Hello!
There is a variable that is passed to the template and which is equal
. If you print it, then everything is fine .
But if you display the
result of some text in the p tag like this, let's say if I have formatted text in the language files and I do: accordingly, everything is printed the same as it is with tags, like to avoid it?
blade laravel 5.2 template $text = '<p>some text</p>';
// some text
=$text {{ $text }} //<p>some text</p>
{{ trans('interface.main_text') }}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question