I try

var text = currentNode.In.Content.replace(/$\"/g, """);

but i have still the same js error.



 syntax error (/apps/servicemix/exchange/html.esp#57) (500)

The requested URL /content/servicemix/message_flows/2009030907PM/ID_192.168.36.12-11feb5c08f2-10_11/ID_192.168.36.12-11feb5c08f2-10_11.html resulted in an error in /apps/servicemix/exchange/html.esp.


     Exception:

org.mozilla.javascript.EvaluatorException: syntax error (/apps/servicemix/exchange/html.esp#57) at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:109) at org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:96) at org.mozilla.javascript.Parser.addError(Parser.java:140) at org.mozilla.javascript.Parser.reportError(Parser.java:154) at org.mozilla.javascript.Parser.primaryExpr(Parser.java:2121) at org.mozilla.javascript.Parser.memberExpr(Parser.java:1729) at org.mozilla.javascript.Parser.unaryExpr(Parser.java:1590) at org.mozilla.javascript.Parser.mulExpr(Parser.java:1519) at org.mozilla.javascript.Parser.addExpr(Parser.java:1500) at org.mozilla.javascript.Parser.shiftExpr(Parser.java:1480) at org.mozilla.javascript.Parser.relExpr(Parser.java:1454) at org.mozilla.javascript.Parser.eqExpr(Parser.java:1410)

....


/**************************************/
Best regards / S pozdravem
Vladislav Krejc(ir(ík

http://www.vkrejcirik.info



Alexander Klimetschek napsal(a):
2009/3/8 vkrejcirik <[email protected]>:
 syntax error (/apps/servicemix/exchange/html.esp#58) (500)

This means your Javascript has an incorrect syntax, nothing Sling-specific.

var text = currentNode.In.Content.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/$"/g, 
"&quot;");

I would guess the

replace(/$"/g, "&quot;");

should be

replace(/$\"/g, "&quot;");

Regards,
Alex

Reply via email to