title: How to safely display html content submitted by user?
body: <p>I am doing stack overflow style adding images &amp; formatting to posts[as possible via the stackoverflow post edit tools], so I have the generated html for the presentation that could be used to display on pages.</p>
  <p>But the problem is how to display that html, when I try to display the html it gets printed on the page like <code>&quot;&lt;html&gt;blah bhlah&lt;/html&gt;&quot;</code>. How to escape this html content safely on my webpages ?</p>