var objStr = JSON.stringify(JSON.parse(this.dcApiRecorderModel1.content), null, 4); this.html = objStr.replace(/\n/g, '<br>').replace(/\s/g, ' ');
<div class="left" [innerHtml]="html"> </div>
var objStr = JSON.stringify(JSON.parse(this.dcApiRecorderModel1.content), null, 4); this.html = objStr.replace(/\n/g, '<br>').replace(/\s/g, ' ');
<div class="left" [innerHtml]="html"> </div>