Open myukselen opened 7 years ago
If a constant string with inner attributes having " is used, ng-bind-html directive is not handled correctly.
For example, we want to translate this:
<div class="footer-right">Created with <i class="ion-heart"></i></div>
We change it to:
<div class="footer-right" ng-bind-html="'Created with <i class="ion-heart"></i>' | translate"></div>
However this creates a json like:
{ "Created with <i class="ion-heart"></i>": "Created with <i class="ion-heart"></i>" }
Since attribute " is not handled properly, angular-translate cries with:
Translation for Created with <i class="ion-heart"></i> doesn't exist
I have a small fix, creating a PR now.
If a constant string with inner attributes having " is used, ng-bind-html directive is not handled correctly.
For example, we want to translate this:
We change it to:
However this creates a json like:
Since attribute " is not handled properly, angular-translate cries with: