diff --git a/src/main/webapp/app/code-editor/build-output/code-editor-build-output.component.html b/src/main/webapp/app/code-editor/build-output/code-editor-build-output.component.html index ed243ce78685..386d12f00b7b 100644 --- a/src/main/webapp/app/code-editor/build-output/code-editor-build-output.component.html +++ b/src/main/webapp/app/code-editor/build-output/code-editor-build-output.component.html @@ -16,7 +16,7 @@

- + {{ logEntry.log }}
diff --git a/src/main/webapp/app/entities/result/result-detail.component.html b/src/main/webapp/app/entities/result/result-detail.component.html index 0845a0611a19..8bcd798d1049 100644 --- a/src/main/webapp/app/entities/result/result-detail.component.html +++ b/src/main/webapp/app/entities/result/result-detail.component.html @@ -28,7 +28,7 @@

Feedback  {{ feedback.text }}:

-

+                
{{ feedback.detailText }}
No feedback available

@@ -49,8 +49,9 @@ [class.font-weight-bold]="logEntry.type === BuildLogType.ERROR" [class.text-warning]="logEntry.type === BuildLogType.WARNING" [class.mb-3]="i + 1 < buildLogs.length && logEntry.time !== buildLogs[i + 1].time" - [innerHtml]="logEntry.log | safeHtml" - > + > + {{ logEntry.log }} + diff --git a/src/test/javascript/spec/component/code-editor/code-editor-build-output.spec.ts b/src/test/javascript/spec/component/code-editor/code-editor-build-output.spec.ts index ee68e0fcea6e..91bec31bda77 100644 --- a/src/test/javascript/spec/component/code-editor/code-editor-build-output.spec.ts +++ b/src/test/javascript/spec/component/code-editor/code-editor-build-output.spec.ts @@ -13,7 +13,7 @@ import { CodeEditorBuildLogService, CodeEditorBuildOutputComponent, CodeEditorSe import { ArtemisTestModule } from '../../test.module'; import { Participation, ParticipationWebsocketService } from 'app/entities/participation'; import { MockCodeEditorBuildLogService, MockCodeEditorSessionService, MockCookieService, MockParticipationWebsocketService, MockResultService, MockSyncStorage } from '../../mocks'; -import { SafeHtmlPipe } from 'app/shared'; +import { ArtemisSharedModule, SafeHtmlPipe } from 'app/shared'; import { ResultService } from 'app/entities/result'; import { Feedback } from 'app/entities/feedback'; import { BuildLogEntryArray } from 'app/entities/build-log'; @@ -38,8 +38,8 @@ describe('CodeEditorBuildOutputComponent', () => { beforeEach(async () => { return TestBed.configureTestingModule({ - imports: [TranslateModule.forRoot(), ArtemisTestModule, AceEditorModule], - declarations: [CodeEditorBuildOutputComponent, SafeHtmlPipe], + imports: [TranslateModule.forRoot(), ArtemisTestModule, AceEditorModule, ArtemisSharedModule], + declarations: [CodeEditorBuildOutputComponent], providers: [ { provide: ResultService, useClass: MockResultService }, { provide: CodeEditorBuildLogService, useClass: MockCodeEditorBuildLogService },