title: Escape html in python?
body: <p>i have a <code>&lt;img src=__string__&gt;</code> but <strong>string</strong> might contain ", what should I do to escape it?</p>
  
  <p>Example:</p>
  
  <pre><code>__string__ = test".jpg
  &lt;img src="test".jpg"&gt;
  </code></pre>
  
  <p>doesn't work.</p>