I have built an application that retrieves data from the WP Rest API V2 with AngularJS. The response contains escaped characters like the one below:
"excerpt": {
"rendered": "<p>Når vi handler ind, støder vi på mange forskellige mærkningsordninger, og det kan ofte være svært at finde ud af, hvad de forskellige typer betyder. For at give dig svar på…</p>\n",
"protected": false
},
Is there a way unescape the character in Angular? I have looked at multiple options but none seem to work.
The data is displayed in my view like this:
<div class="titlepane">
<h4 class="posttitle white">
{{posts.title.rendered}}
</h4>
<h4 class="categorytitle white">
{{categories.name}}
</h4>
</div>
You can see the result in the image where the escaped character is shown.
How do I solve this?