I am writing an Angular application and I have an HTML response I want to display.
How do I do that? If I simply use the binding syntax {{myVal}} it encodes all HTML characters (of course).
I need somehow to bind the innerHTML of a div to the variable value.
- Adam asked 5 months ago
- You must login to post comments
Syntax:
<div [innerHTML]="theHtmlString"></div>
- Adam answered 5 months ago
- last edited 5 months ago
- You must login to post comments
Your Answer
Please login first to submit.