I am currently utilizing Angular 2 alongside C# and SQL Server for my project. One of the scenarios I'm facing involves retrieving an HTML string from the database, which may contain encoded HTML tags or special characters such as (> , <, &, etc).
When the content is fetched from the database, these special characters are in encoded format. However, I need to decode them back to their original form within my TypeScript file. Here's an example of the original string:
if > 10
On the UI, it appears as follows:
if > 10
In my HTML, I have used the following code snippet:
<div class="bold-text">{{vm.Name}}</div>
If you have any suggestions on how to decode these special characters in TypeScript or Angular 2, please let me know.