But the modern Angular way is using npm and importing them into components.
ngOnInit() this.http.get('assets/output.html', responseType: 'text' ) .subscribe(html => this.bhHtml = this.sanitizer.sanitize(html); );
The specifics can vary based on your requirements. For a more detailed guide, you might want to look into the WebExtensions documentation .
' ).
Angular’s built-in security will automatically escape HTML in data bindings. To render the converted HTML, you must explicitly trust the string using sanitizer.bypassSecurityTrustHtml(value) . Mozilla Compatibility