AnsweredAssumed Answered

Cannot find function replace

Question asked by lordzoster on Feb 20, 2014
Latest reply on Feb 20, 2014 by kaynezhang
I'm performing a replace on the content of a node, in this way:

var str =;
var result = str.replace("apple", "orange");
but I'm getting an Exception "org.mozilla.javascript.EcmaError - TypeError: Cannot find function replace"

Could anybody help me please?
Thanks in advance