Ticket #1104: specialReplacements.patch

File specialReplacements.patch, 562 bytes (added by guest, 12 years ago)
  • XinhaCore.js

     
    49464946      continue; 
    49474947    }  
    49484948    // alert('out : ' + from + '=>' + to); 
    4949     var reg = new RegExp(Xinha.escapeStringForRegExp(from), 'g'); 
    4950     html = html.replace(reg, to.replace(/\$/g, '$$$$')); 
     4949    var reg = new RegExp(Xinha.escapeStringForRegExp(to), 'g'); 
     4950    html = html.replace(reg, from.replace(/\$/g, '$$$$')); 
    49514951    //html = html.replace(from, to); 
    49524952  } 
    49534953  return html;