Skip to content

Commit 889bace

Browse files
Mattia VianelliMattia Vianelli
authored andcommitted
DSC-2212 Fixed rendering in item-search-result-list-element.component.ts
1 parent 67ba3dc commit 889bace

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/app/shared/object-list/search-result-list-element/item-search-result/item-types/item/item-search-result-list-element.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ export class ItemSearchResultListElementComponent extends SearchResultListElemen
107107
ngOnInit(): void {
108108
super.ngOnInit();
109109
this.itemPageRoute = getItemPageRoute(this.dso);
110+
// Escape < and > in dsoTitle if it exists
111+
if (this.dsoTitle) {
112+
this.dsoTitle = this.dsoTitle.replace(/</g, '&lt;').replace(/>/g, '&gt;');
113+
}
110114
}
111115

112116
/**

0 commit comments

Comments
 (0)