I have organised my data in JSON file, which contains multi-line string, separated in the array. Like this:
[
{
"name": "1. Some Name",
"id": "1",
"description": [
"Some long text 1 ",
"Some long text 2 "
]
},
{
"name": "2. Some Name",
"id": "2",
"description": [
"Some long text 1 ",
"Some long text 2 "
]
}
]
Then in my view I want show text in description:
<ion-view view-title="">
<ion-content>
<div class="card">
<div class="item item-text-wrap"
ng-repeat="rule in rules | filter: { id: whichid }">
{{ rule.description }}
</div>
</div>
</ion-content>
And my output look like this:
["Some long text 1","Some long text 2"]
How I can remove (or filter) that character '[' , '"' and ','?
Or if i use ng-bind-html="rule.description" directive i got:
Some long text 1 ,Some long text 2
Basically that is fine output, but they contain a comma ',' (which is in the array).