I'm sorry, I forgot to specify that it works well.
It is just an aesthetic matter.

Regards

A



On Tue, 2017-05-09 at 13:25 +0200, Martin Grigorov wrote:
> Hi,
> 
> Do you face issues with this quotes ?
> I think they are harmless. The browser decodes them properly before
> executing the JS code.
> 
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
> 
> On Tue, May 9, 2017 at 1:09 PM, <abros...@inogs.it> wrote:
> 
> > 
> > Hello,
> > I'm trying to add a "onchange" attribute to an "input" tag.
> > The onchange attribute contains javascript code with apostrophes
> > (').
> > These apostrophes are encoded (&#039;) in the resulting html.
> > 
> > Java code
> > ...
> > new AttributeModifier("onchange", new
> > Model<String>("document.getElementById('navbar').classList.toggle('
> > cond
> > ensedNav');")
> > ...
> > 
> > Resulting html
> > ...
> > onchange="document.getElementById(&#039;navbar&#039;).classList.tog
> > gle(
> > &#039;condensedNav&#039;);"
> > ...
> > 
> > How can I avoid it?
> > 
> > Regards
> > 
> > Alberto
> > 
> > -----------------------------------------------------------------
> > ----
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> > 
> > 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to