I'm passing a bean QuoteOption
into the model that has a method called getCachedImageUrl(url, width, height)
that returns a URL for the image.
My Thymeleaf template:
<img th:src="${quoteOption.getCachedImageUrl(baseUrl,300,200)}" />
Generates
<img src="http://nitro:8080/image/nitro-resources-development/28f08e67-96c9-4bb4-8012-9e34040cc976.jpeg?width=300&height=200" />
Notice the &
in the url parameters! Aaaargh! How do I instruct Thymeleaf to not escape the ampersand?