public static String htmlDoubleQuotes(String str){
  str=str.replaceAll("[\"]","&quot;");
  str=str.replaceAll("&#147;","&quot;");
  str=str.replaceAll("&#148;","&quot;");
  return str;
}

public static String htmlDoubleQuotes ( String str ) { str = str . replaceAll ( "[\"]" , "&quot;" ) ; str = str . replaceAll ( "&#147;" , "&quot;" ) ; str = str . replaceAll ( "&#148;" , "&quot;" ) ; return str ; }
replace double quotes characters with html entities .
