- Merge request !86Issue #3137689 by manuel.adan, sascha_meissner: Image URL tokens are HTML escaped → (Open) created by sascha_meissner
Using the image style URL token I'm getting values like this:
http://localhost/sites/default/files/styles/small_square/public/some/path/image.jpg?h=209f3b97&itok=p0RR9BOl
Note the "&" in the value that ends in a broken image when the URL is used as img src.
As far I can see, tokens are HTML escaped by core when the callback returns a string value rather than a MarkupInterface impl.
Return the image style URL token value enclosed in a Markup object instead as simple string to prevent being escaped and therefore return a malformed URL.
N/A
N/A
N/A
TBD.
Needs review
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.