willdurand / BazingaJsTranslationBundle

A pretty nice way to expose your Symfony translation messages to your client applications.
MIT License
572 stars 178 forks source link

escaping XML/HTML tags according to intl-messageformat documentation #311

Open shtumi opened 3 years ago

shtumi commented 3 years ago

support translation ids like translation.id: {count, plural, one {1 item} other {{count} items} }

sustmi commented 2 years ago

I think this could be solved using ignoreTag option too: https://formatjs.io/docs/intl-messageformat/#intlmessageformat-constructor

sustmi commented 2 years ago

I created a new pull request that uses the ignoreTag option to solve the issue: https://github.com/willdurand/BazingaJsTranslationBundle/pull/325