When I create a url in an action using something_url(conn, .....%{k1: 1, k2: 22}) – with a query string that is – and pass it to a template and render, the ampersands get rendered as &
.....key1=1&key2=22
I’ve tried raw(..) but it caused an exception: “no function clause matching in Phoenix.HTML.raw/1” as if it weren’t a string
For note, things like <a href="?foo&bar"> is invalid according to the spec (is it still in html5? I think so) as &bar does not exist, ampersand is the escape character, so if it should be part of the URL then you need to escape & via & to become <a href="?foo&bar">, this is just standard HTML.