Skip to content

Commit ac1a6e5

Browse files
134380: fixed abstract and date field not being escaped
1 parent e1dade8 commit ac1a6e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/shared/object-list/my-dspace-result-list-element/item-list-preview/item-list-preview.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h2 [innerHTML]="dsoTitle" [ngClass]="{'lead': true,'text-muted': !item.firstMet
1616
(<span *ngIf="item.hasMetadata('dc.publisher')" class="item-list-publisher"
1717
[innerHTML]="item.firstMetadataValue('dc.publisher', undefined, true) + ', '"></span>
1818
<span class="item-list-date"
19-
[innerHTML]="item.firstMetadataValue('dc.date.issued') || ('mydspace.results.no-date' | translate)"></span>)
19+
[innerHTML]="item.firstMetadataValue('dc.date.issued', undefined, true) || ('mydspace.results.no-date' | translate)"></span>)
2020
<span *ngIf="item.hasMetadata(['dc.contributor.author', 'dc.creator', 'dc.contributor.*']);"
2121
class="item-list-authors">
2222
<span
@@ -34,7 +34,7 @@ <h2 [innerHTML]="dsoTitle" [ngClass]="{'lead': true,'text-muted': !item.firstMet
3434

3535
<ds-truncatable-part [id]="item.id" [minLines]="1" class="item-list-abstract">
3636
<span [ngClass]="{'text-muted': !item.hasMetadata('dc.description.abstract')}"
37-
[innerHTML]="(item.firstMetadataValue('dc.description.abstract')) || ('mydspace.results.no-abstract' | translate)"></span>
37+
[innerHTML]="(item.firstMetadataValue('dc.description.abstract', undefined, true)) || ('mydspace.results.no-abstract' | translate)"></span>
3838
</ds-truncatable-part>
3939

4040
</div>

0 commit comments

Comments
 (0)