mah, a me sembra ok

var str="evaluate the string ‘false’ as the boolean false."
var str=str.replace(/’/g,'\'');
var str=str.replace(/‘/g,'\'');
alert(str);