title: How to use fn:replace() to replace one doublequote by two doublequotes
body: <p>In my JSF application I am trying to use <code>fn:replace()</code> to replace <code>"</code> by <code>""</code>. I tried the following:</p>
  
  <pre><code>&lt;h:outputText value="#{fn:replace(str, '\"', '\"\"')}" /&gt;
  </code></pre>
  
  <p>However, it causes a XML parsing exception:</p>
  
  <blockquote>
    <p>javax.faces.view.facelets.FaceletException: Error Parsing /test.xhtml: Error Traced[line: 20] Element type "h:outputText" must be followed by either attribute specifications, ">" or "/>".</p>
  </blockquote>
  
  <p>The same code is working for other charecters like the below one:</p>
  
  <pre><code>&lt;h:outputText value="#{fn:replace(str, 'a', 'b')}" /&gt;
  </code></pre>
  
  <p>How can I replace a doublequote by two doublequotes using <code>fn:replace()</code>?</p>