Javascript escaping problem

G

Ghosty

Hi guys,

I have found this porblem and I cannot seem to find the source of it,
I hope that someone out there can help me.

The application is running tomcat, jboss, Apache Struts, Apache tiles.

In one of the pages I have a search filed (source below)

<input name="q" type="text" value="Search"
onfocus=" if (this.value==this.defaultValue) this.value='' "
onblur="if (this.value=='') this.value='Search' " />

This works fin on our main website, but for some reason when the page
is displayed through this system the ' are being escaped and turned
into &apos;, which means the javascript has errors in it.

I have tried putting \ in front of the ' and that doesnt seem to work.

I have crawled the web and come up with nothing.

I had a similar problem with an if statement inside a script tag - the
sign was being escaped to &gt;. I fixed this one by moving the file
off the server and linking to it with the src param.

Does anyone out there have any ideas about how to stop this escaping
of characters, its driving me insane!

Many thanks,

Simon Yeldon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top