I am working with Angular 2 and C#, SQL Server (database). I have a scenario where some HTML string is coming from database which contains the HTML tags or special characters like- (> , < & etc).
So when it's coming from database the special character's are coming in encoded format. But I wanted to decode it in it's actual content in TypeScript file. Below is the example of my original string-
if > 10
And it's showing in UI as below-
if > 10
I am using below code in HTML-
<div class="bold-text">{{vm.Name}}</div>
Can anyone suggest how we can decode it in TypeScript or Angular 2 .