Angular automatically sanitizes content to prevent cross-site scripting (XSS) . To display a string that contains HTML tags (like or ), you must use specific property bindings.
If you specifically need a , create a custom service. We will do that.
If "BH" refers to the template engine, it is a JavaScript-based tool used to convert BEMJSON to HTML .
return `<div class="bh-container mozilla-friendly">$html</div>`;
: This is the standard way to render an HTML string.
For users looking to download or extract HTML from text within the browser, several provide these specific utilities:
You have successfully:
: Use [innerHTML] to render HTML strings directly.