When retrieving the value "Evidence" from an API, it looks like "
<FORM METHOD="get" ACTION="search">
"
{
data: {
evidence:<FORM METHOD="get" ACTION="search">
}
}
In my TypeScript file:
public evidence : any;
getEvidence(){
this.service.getevidence().subscribe(data => {
this.evidence= data.data.evidence // The value is stored here
});
In the HTML file:
<span [innerHTML]="evidence"></span>
I would like to display the value but I am encountering the issue:
WARNING: sanitizing HTML stripped some content