HTML tags in i18next translation

前端 未结 8 1396
小鲜肉
小鲜肉 2020-12-08 18:30

I\'m using i18next to power i18n for my weblog. It works great on text-only content, but when I try to translate content that includes HTML markup, it is displaying the raw

8条回答
  •  伪装坚强ぢ
    2020-12-08 19:03

    i18n.t('key',{dateStr: date, interpolation: {escapeValue: false}})
    

    work for me if date='15/10/2020', slashes kept as well

提交回复
热议问题