GitLab steht aufgrund wichtiger Wartungsarbeiten am Montag, den 8. März, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Bugfixes

parent 50bef5f5
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, SecurityContext } from '@angular/core';
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
@Component({
......@@ -22,6 +22,7 @@ export class VotingQuestionComponent {
constructor(private sanitizer: DomSanitizer, private cd: ChangeDetectorRef) { }
public sanitizeHTML(value: string): string {
return this.sanitizer.sanitize(SecurityContext.HTML, `${value}`);
// sanitizer.bypassSecurityTrustHtml is required for highslide
return this.sanitizer.bypassSecurityTrustHtml(`${value}`) as string;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment