S
S
sawa42016-09-01 14:13:43
Java
sawa4, 2016-09-01 14:13:43

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>';
<?=$text ?> // some text
{{ $text }} //<p>some text</p>
{{ trans('interface.main_text') }}

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Serkov, 2016-06-29
@WannaCreative

Character code "5" - 53, multiply by 2 = 106

R
Rou1997, 2016-06-29
@Rou1997

yandex.ru/yandsearch?text=java+read+integer+from+c...

V
Victor, 2016-09-01
@sawa4

{!! $text !!}
https://laravel.com/docs/5.3/blade#displaying-data
Displaying Unescaped Data Section

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question