title: Display apostrophe from <s:property /> Struts
body: <p>Double single quotes in a struts property tag</p>
  
  <p>I need to display a single apostrophe in a translated string from my properties file. I was using an <code>&lt;s:text&gt;</code> tag but this would not allow me add the <code>escapeJavaScript</code> parameter. I changed it to an s:property tag and escaped the JavaScript but now the double apostrophes are displayed to the client as just that, two apostrophes.
  This text is used in several places where I do use <code>&lt;s:text&gt;</code> so I can not simply reduce it to one single apostrophe.</p>
  
  <p>I need to escape JS because for some reason the double apostrophes are breaking the JS of the page. </p>
  
  <p>Does anybody have any idea why using the <code>&lt;s:property&gt;</code> appears to escape the double apostrophe rule?</p>
  
  <p>This is my relevant code:</p>
  
  <pre><code>  actionMessageShow('&lt;s:property value="%{propf(\'Cannot_load_image\')}" escapeJavaScript="true" escapeHtml="false" /&gt;',
    '&lt;s:property value="example.example()"/&gt;');
  
    Cannot_load_image= L''image example...
  </code></pre>