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
Hello. I read your post, “Percent-encoding with the Hugo urlquery Function” (as well as your answer in the Hugo Discourse) regarding the urlquery function you discovered in Hugo. Nice detective work! However, when I use urlquery on a string, the spaces all come out as + HTML entities rather than %20 characters as I’d hoped would be the case based on your information. Other characters seem to have the %-style encoding I’d expect. Am I missing something? Thanks in advance for whatever time you can give to provide your thoughts on this.
The text was updated successfully, but these errors were encountered:
Using {{ urlquery "ho ho ho" }} yields the same result. To make sure it's not altered by other Hugo functions, I inserted the snippet directly after the <body> tag inside baseof.html. I tried messing it up by piping it into other Hugo functions like safeHTML or htmlEscape but couldn't get the same result you got.
Yes, it’s a puzzle. (Using macOS in my case, re your first bullet above.) In any event, I’d still need to do some replace or replaceRE work because the target API (Cloudinary’s) need %-style escaping in all cases; so I suppose it’s a non-issue. Anyway, thanks for the reply, links, and research!
Hello. I read your post, “Percent-encoding with the Hugo urlquery Function” (as well as your answer in the Hugo Discourse) regarding the
urlqueryfunction you discovered in Hugo. Nice detective work! However, when I useurlqueryon a string, the spaces all come out as+HTML entities rather than%20characters as I’d hoped would be the case based on your information. Other characters seem to have the%-style encoding I’d expect. Am I missing something? Thanks in advance for whatever time you can give to provide your thoughts on this.The text was updated successfully, but these errors were encountered: