zerospam / laravel-gettext

Adds localization support to laravel applications using PoEdit and GNU-Gettext.
99 stars 56 forks source link

html tags in translation #30

Open alexisReynaldo opened 5 years ago

alexisReynaldo commented 5 years ago

Hi, I'm trying to translate a string that contains html tags but laravel blade returns me in plain text

code: {{ _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%') }}

result: 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!

smares commented 5 years ago

Use {!! ... !!}

https://laravel.com/docs/5.6/blade#displaying-data