public static String unhtmlSingleQuotes(final String str){
  return str.replaceAll("&rsquo;","\'");
}

public static String unhtmlSingleQuotes ( final String str ) { return str . replaceAll ( "&rsquo;" , "\'" ) ; }
replace single quotes html entities with equivalent character .
