Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular add extra variable on Img at end %E2%80%8B

 http://myimage.png%E2%80%8B

I have just copy paste this img url but it added some wiered data on end and image does not show . but on code it looks perfect .

I have tried something in Angular like

var imageSafeUrl = this.sanitizer.bypassSecurityTrustResourceUrl(this.imageLink);
this.imageLink = imageSafeUrl['changingThisBreaksApplicationSecurity'];

but still it adds

like image 621
Ashutosh Jha Avatar asked Jun 12 '26 02:06

Ashutosh Jha


1 Answers

The data is url encoded so it can be typed safely in an address bar and interpreted by the browser/server

%E2 = â
%80 = `
%8B = ‹

A table to help you interpret the encoded characters is available at https://www.w3schools.com/tags/ref_urlencode.asp

So together you have copied http://myimage.pngâ`‹

like image 75
Tschallacka Avatar answered Jun 13 '26 15:06

Tschallacka