The translation pipe is extremely useful for multilingual angular apps. But by default you cannot serve html-strings in your translations. This his how to do this, use the innerHTML attribute:

  <div class="container mx-auto pt-10">
    <h1 [innerHTML]="'homepage_intro' | translate"></h1>





Saved you some valuable time?


Donate and get more free time-saving code on this website in the future.