It works! But instead of
{{'STRING_TO_TRANSLATE' | translate}}
You should do
<div [innerHTML]="'STRING_TO_TRANSLATE' | translate"></div>
<br/>s
should work just fine, but in other cases you may need some additional 'safe html pipe', i.e:
import { Pipe, PipeTransform } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
@Pipe({name: 'mySafeHtmlPipe'})
export class SafeHtmlPipe implements PipeTransform {
constructor(private sanitizer: DomSanitizer) {
}
public transform(htmlContent) {
return this.sanitizer.bypassSecurityTrustHtml(htmlContent);
}
}