The bsTrustHtml pipe marks a string as trusted HTML so Angular will render it via [innerHTML] without sanitization stripping out the markup. Only use on content you control.
<span [innerHTML]="html | bsTrustHtml"></span>
import { Component } from '@angular/core';
import { BsTrustHtmlPipe } from '@mintplayer/ng-bootstrap/trust-html';
@Component({
selector: 'my-trust-html-demo',
templateUrl: './my-trust-html-demo.component.html',
imports: [BsTrustHtmlPipe],
})
export class MyTrustHtmlDemoComponent {
protected html = '<strong>Bold</strong> + <em>italic</em>';
}