#next/image src url gets html entities when resolving
8 messages · Page 1 of 1 (latest)
Mind explaining?
When you want to add to the src tag, put the query result into the encodeuri
you mean like this?
<Image
src={encodeURI(user.picSrc)}
alt='avatar'
width={36}
height={36}
/>
Yes, exactly, but for reference here is this
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI
The encodeURI() function encodes a URI by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of the character (will only be four escape sequences for characters composed of two surrogate characters). Compared to encodeURIComponent(), this function encodes fewer characters, p...
I tried that already both with encodeURI and encodeURIComponent, but neither are working. The url will remain as said with those symbols instead of the actual characters.