【发布时间】:2019-07-16 02:42:29
【问题描述】:
我正在尝试翻译一个包含 HTML 标记的字符串,但 Laravel Blade 以纯文本形式返回给我。
{{ _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 包。
【问题讨论】:
标签: php laravel laravel-5 laravel-blade gettext