Simplest solution:
<div [innerHTML]="some_string"></div>
Where some_string
can be html code, e.g: some_string = "<b>test</b>"
.
No pipes or anything needed. Supported by Angular 2.0
More Related Contents:
- I want to create a color picker in ionic app [closed]
- Binding select element to object in Angular
- What to use in place of ::ng-deep
- How to declare a variable in a template in Angular
- Angular 2 Dropdown Options Default Value
- Show loading screen when navigating between routes in Angular 2
- Angular 5 FormGroup reset doesn’t reset validators
- Angular 2 Checkbox Two Way Data Binding
- Detect click outside Angular component
- Angular 2 Remove Hash (#) from the URL
- How can I repeat a piece of HTML multiple times without ngFor and without another @Component?
- How to load image (and other assets) in Angular an project?
- Dynamically ADDING and REMOVING Components in Angular
- Using HTML anchor link #id in Angular 6
- Angular2, what is the correct way to disable an anchor element?
- Style not working for innerHTML in Angular [duplicate]
- How to convert input value to uppercase in angular 2 (value passing to ngControl)
- Access Control Allow Origin issue in Angular 2
- How to remove the previously selected option from a drop-down menu in a table?
- How to show split header in the material table having nested group of data in angular
- How to render string with html tags in Angular 4+? [duplicate]
- Remove host component tag from html in angular 4
- Detecting real time window size changes in Angular 4
- Angular4 – Scrolling to anchor
- Angular2 without hash in the url
- Angular2 disable button
- Get Angular2 routing working on IIS 7.5
- Using HTML anchor link fragment in Angular 6
- Create tree view with horizontal and vertical lines showing the connectivity using css
- How to serve up images in Angular2?