php - Angular: 'sanitizing unsafe URL value' whenever I am trying to point towards a folder withibn

one text

Solution:

It is as stated in the error you must do

<img [src]="getSanitizeUrl(imagePath)" height="400px" width="400px">

wrapping src tag in [ ] makes it a binding property.

Source