In Angular, I have an array that has the following structure:
$scope.posts = [
{
"ID" : id(),
"Title" : "A",
"Company" : "Company A",
"Location" : "San Francisco, CA",
"Date" : "2016-06-20",
"Description": "Description<br>Desciption part 2",
}
];
The description is displayed using
<p>{{post.description}}</p>
within a div with ng-repeat = "post in posts"
.
However, the output appears as:
Description.<br>Description part 2
Instead of:
Description
Description part 2.
The same issue arises when trying to insert <ul>
and <li>
tags.
Is there a way to interpret the html structure within the array value to display it correctly as html rather than explicitly rendered like this?