You have 3 options: 1. use ’ instead of ' 2. call you function as myfunction('Don\'t Look Now') 3. myfunction(unescape('Don%27t Look Now'))
Thanks so much Dmitry, I've actually used a combination of the above.
myfunction(escape('Don’t Look Now'))
and then unescaped it at the "other end"... I can stop scratching my head now! ------------------------------------------------------------ "Have You Validated Your Code?" John Horner (+612 / 02) 9333 3488 Senior Developer, ABC Online http://www.abc.net.au/ ------------------------------------------------------------ ****************************************************** The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************