Are there any methods to instruct angular and angular-translate how to manage strings containing HTML content?
I am using
add_card-title = "To make ordering even quicker, <span class="nowrap">add a card now</span>"
as my Lang string. When I use it in my template with <p>{{'add_card-title' | translate}}</p>
, the output displays the string as is.
Output:
To make ordering even quicker, <span class="nowrap">add a card now</span>
Expected output: To make ordering even quicker, add a card now
I have tried using ng-html-bind-unsafe
but it has not been effective.
Not working:
<p ng-html-bind-unsafe="{{'add_card-title' | translate}}"></p>
Is there another way to achieve this result?
Here is my plunker: http://plnkr.co/edit/nTmMFm9B94BmbTgo2h8H?p=preview
For more information, please see this issue: https://github.com/PascalPrecht/angular-translate/issues/173
Note: I prefer not to involve a controller to handle this situation.