Java Mailing List Archive

http://www.gg3721.com/

Home » user.groovy »

[groovy-user] using ampersand in an HTML builder?

Bryan Larsen

2008-08-19

Replies: Find Java Web Hosting

Author LoginPost Reply
I'm trying to do the following in an HTML builder.

script(type:"text/javascript", "hello && goodbye")

The HTML builder duly escapes my ampersand, making invalid Javascript.

The "right" answer would be to put the javascript in a separate file
and use the src attribute, but for reasons too painful to enumerate
here, I cannot do that.

Is there any way to send unescaped strings from an HTML builder?

thanks,
Bryan

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


©2008 gg3721.com - Jax Systems, LLC, U.S.A.