You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A rather niche issue that is affecting me. I've created an API that converts the output from https://boardgamegeek.com/xmlapi2/hot?boardgame into an RSS feed that can be read using the RSS widget. However, if you look in the link the urls have parenthesis in them which get escaped. When I look at my glance homepage the image urls have %28%29 in place of ().
Is this something I can fix with a setting?
I'm fairly sure it's not an issue on my end as all my debugging indicates the () are being sent correctly and the escaping to %28%29 is happening on the glance server.
The text was updated successfully, but these errors were encountered:
Unfortunately there is no setting to prevent this behavior. Go's html/template automatically escapes parentheses regardless of the type of the value, be it template.HTML, template.URL or template.HTMLAttr. There is an issue regarding this over at Go's repository (golang/go#63586 (comment)) and I think I agree with rsc, it's up to the server to decode those characters properly.
The only way I can think of to overcome this from within Glance is to extract the entire <img> tag into a template.HTML and pass that to the template which should avoid the escaping, though it's kinda hacky and would require me to rewrite a bunch of stuff because images have different classes depending on the style of the widget. Happy to hear any other ideas if someone has a simpler solution.
Upon further research, this appears to be an old issue with thumbor, which is what boardgamegeek.com is using to serve its thumbnails.
Thanks for looking into it and providing more information. As a result I've redesigned to use the extension module to provide the html directly rather than relying on the RSS module and that works perfectly.
A rather niche issue that is affecting me. I've created an API that converts the output from https://boardgamegeek.com/xmlapi2/hot?boardgame into an RSS feed that can be read using the RSS widget. However, if you look in the link the urls have parenthesis in them which get escaped. When I look at my glance homepage the image urls have %28%29 in place of ().
Is this something I can fix with a setting?
I'm fairly sure it's not an issue on my end as all my debugging indicates the () are being sent correctly and the escaping to %28%29 is happening on the glance server.
The text was updated successfully, but these errors were encountered: