title: How to remove html encoding from a string in angular 4?
body: <p>I have a very simple requirement. I have two strings as follows :</p>
  
  <pre><code>htmlStr = "&amp;lt;strong&amp;gt;News Body&amp;lt;/strong&amp;gt;";
  htmlStr1 = "&lt;strong&gt;News Body2&lt;/strong&gt;";
  </code></pre>
  
  <p>I use innerHTML of div tag to display these strings on a html page </p>
  
  <pre><code>&lt;div [innerHTML]="htmlStr"&gt;&lt;/div&gt;
  &lt;div [innerHTML]="htmlStr1"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Output I get is</p>
  
  <p><a href="https://i.stack.imgur.com/N8QfF.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/N8QfF.jpg" alt="enter image description here"></a></p>
  
  <p>My expected output is : </p>
  
  <p><a href="https://i.stack.imgur.com/vxg0O.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vxg0O.jpg" alt="enter image description here"></a></p>
  
  <p>How do i remove html encoding from htmlStr? </p>