I have received json data that is structured like this (and unfortunately cannot be modified):
Desc: First data - Second data
My current method of displaying this data involves using the following code:
<div ng-repeat="b in a.Items">{{b.Desc}}</div>
However, I need to show 'Second data' below 'First data' without the hyphen separating them.
Currently, the display looks like this:
<div>First data - Second data</div>
But I require it to be displayed as:
<div><p>First data</p><p>Second data</p></div>
or
<div>First data<br/>Second data</div>
Is there an option or filter within angularjs that can help me achieve this formatting by breaking the string and removing the hyphen?