ionic allow unsafe image code example
Example: ionic allow unsafe image
import {DomSanitizer} from '@angular/platform-browser';
@Component({
templateUrl: 'somePage.html'
})
export class SomePage {
constructor(
public _DomSanitizer: DomSanitizer,
...
) {
}
// <img [src]="_DomSanitizer.bypassSecurityTrustUrl(imgSrcProperty)"/>