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&b=2"));

Have fun

Sven


On 18.08.19 13:13, Korbinian Bachl wrote:
Hi,

I try to manipulate some tags on an WebMarkupContainer called image. If I do:

image.add(AttributeModifier.replace("src", imgUrl + "?a=1&b=2"));

the src is not as expected: "...?a=1&b=2"
but its escaped as "...?a=1&b=2"

I tried setEscapeModelStrings false on the image itself, wont work and 
AttributeModifier has no way to escape....

Any idea what to do now?

Best,

KB

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to