innerHTML content

Hi. Thank you. I didn’t understand the way you’ve presented but I’ve tried in this way. As far as I saw for most of the people this method is working but for me it didn’t. I’m doing something wrong?
I’ve imported domsanitizer

import {DomSanitizer} from ‘@angular/platform-browser’

I’ve added inside the constructor

constructor(public navCtrl: NavController, public navParams: NavParams, public http:Http, private modal: ModalController,private sanitizer: DomSanitizer)

And here before getting the data from url

this.entireArticle = sanitizer.bypassSecurityTrustHtml(data[7]);

Thank you!