title: Java - escaping double quotes in string from file
body: <p>I have html string from file. I need to escape all double quotes. So I do this way:</p>
  
  <pre><code>String content=readFile(file.getAbsolutePath(), StandardCharsets.UTF_8);
  content=content.replaceAll("\"","\\\"");
  System.out.println(content);
  </code></pre>
  
  <p>However, the double quotes are not escaped and the string is the same as it was before replaceAll method. When I do </p>
  
  <pre><code>String content=readFile(file.getAbsolutePath(), StandardCharsets.UTF_8);
  content=content.replaceAll("\"","^^^");
  System.out.println(content);
  </code></pre>
  
  <p>All double quotes are replaced with ^^^. </p>
  
  <p>Why <code>content.replaceAll("\"","\\\"");</code> doesn't work?</p>