title: Angular - InnerHtml with styles
body: <p>I've this...</p>
  
  <pre><code>const htmlVar = "&lt;html&gt;
  &lt;div style="display:flex"&gt;
  &lt;div&gt;
    &lt;h1&gt;Hello World&lt;/h1&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  ";
  </code></pre>
  
  <p>and on my html I've this..</p>
  
  <pre><code> &lt;div [innerHtml]="htmlVar"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>It's render everything, but the style :(</p>
  
  <p>I attempted the solution of this link: <a href="https://stackoverflow.com/questions/44210786/style-not-working-for-innerhtml-in-angular-2-typescript">style not working for innerhtml in Angular 2 Typescript</a></p>
  
  <p>but it's not working. Maybe because it's too old.</p>
  
  <p>Any clue ?</p>