Я пытаюсь перевести строку, содержащую HTML-теги, но лезвие Laravel возвращает мне обычный текст.
{{ _i('The <b>%s</b> referral program is a great way to spread the word of this great service and to earn even more money with your short links! Refer friends and receive %s of their earnings for life!', 'gano.com', '20%') }}
результат:
The <b>gano.com</b> referral program is a great way to spread the word of this great service and to earn even more money with your short links! Refer friends and receive 20% of their earnings for life!
Я использую следующий пакет Laravel.






вы можете отображать теги html следующим образом:
{!! 'this text will be <b>bold</b>.' !!}
Вывод: этот текст будет смелый.
Laravel использует {{ }} для экранирования тегов, чтобы предотвратить XSS-атаки.
Но в любом случае вам нужно отображать html-теги внутри переменной, вы можете использовать {!! !!}
Вы можете попробовать два варианта для этого:
{!! _i('The <b>%s</b> referral program is a great way to spread the word of this great service and to earn even more money with your short links! Refer friends and receive %s of their earnings for life!', 'gano.com', '20%') !!}
{!!html_entity_decode(_i('The <b>%s</b> referral program is a great way to spread the word of this great service and to earn even more money with your short links! Refer friends and receive %s of their earnings for life!', 'gano.com', '20%'))!!}
Оба должны работать нормально для вас.