I got weird or possibly intentional behavior using angular translate.
Our strategic value
$translateProvider.useSanitizeValueStrategy('sanitize');
We mainly use the translation filter in our application, but when it comes to special characters, we get instead of Überschrift something like and # 220; berschrift .
If I use the directive, it works.
If I use a filter, this only works when the sanitize strategy is set to "escaped".
Is there any other solution than rewriting ALL translation filters to directives?
Here is my plnkr http://plnkr.co/edit/QIMVQcyH5APeYxNnS82v
For information, I can’t just use a “shielded” strategy, because we use angular to translate variables, and these variables sometimes even contain html tags.
Thanks!
source share