Re: AttributeModifier values gets escaped

2019-08-18 Thread Korbinian Bachl
Hi Sven, im using this in regards to the picture element's and the values then are going through JS :/ I coded now around this for the JS part, but it would be nice to have a .setNoEscape(boolean ) option on the AttributeModifiert Browsers get the ampersand in URLs but JS is a nightmare with

Re: AttributeModifier values gets escaped

2019-08-18 Thread Sven Meier
Hi Korbinian, AttributeModifier always escapes its value, there's no way around that. Why aren't you starting with an escaped url in the first place? image.add(AttributeModifier.replace("src", imgUrl + "?a=1=2")); Have fun Sven On 18.08.19 13:13, Korbinian Bachl wrote: Hi, I try

AttributeModifier values gets escaped

2019-08-18 Thread Korbinian Bachl
Hi, I try to manipulate some tags on an WebMarkupContainer called image. If I do: image.add(AttributeModifier.replace("src", imgUrl + "?a=1b=2")); the src is not as expected: "...?a=1b=2" but its escaped as "...?a=1amp;b=2" I tried setEscapeModelStrings false on the image itself, wont work