Hi, I want to use the struts property tag to set a JavaScript variable. Ordinarily, it would look something like: var testValue = '<s:property value="testValue" />';
However, this does not work if the value has a single quote in it, so that character needs to be escaped. It should be easy, but I can't figure out how to do it. I can't return testValue.replaceAll("'", "\'") as I'd like to because the quotes in the call to replaceAll would interfere with the quotes in property tag. My only other idea was to create a class with a static method, but I can't figure out how to call it. Would it be something like: var testValue = '<s:property value="@[EMAIL PROTECTED](comments)" />' Thanks, Ben -- View this message in context: http://www.nabble.com/Escaping-Characters-in-Struts-Property-Tag-tf4799846.html#a13732222 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]