title: Escape an apostrophe from a data binding's XML
body: <p>I have a string from xml with an apostrophe that should be escaped to <code>&amp;apos;</code> and it is not. </p>
  
  <pre><code>&lt;city place="park's place"/&gt;
  </code></pre>
  
  <p>In html I am grabbing the value.</p>
  
  <pre><code>&lt;span datafld="place"&gt;&lt;/span&gt;
  </code></pre>
  
  <p>I need the value in place to be "park<code>&amp;apos;</code>s place" and not park's place. Currently it shows "park's place".</p>
  
  <p>I have spent a good amount of time trying to find an answer and can't seem to find one.</p>
  
  <p>This code example is badly hacked together since I am not allowed to show any original code. </p>
  
  <p>Thanks.</p>
  
  <p>Edit: This is on a xhtml page using javascript.                                                       </p>