I'm getting post's data from remote server, the post's data contain html with style and class attribute (generated from a WYSIWYG editor).
I want to render the html data as is, without filtering or sanitizing it.
I tried to use this method:
<div [innerHTML]="post.body"></div>
But Angular is deleting the style attribute from the html.
Is there anyway to keep the html attributes (even if it's dangerous)?
 
    