File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ import event from "@ui5/webcomponents-base/dist/decorators/event-strict.js";
10
10
import { SEARCH_ITEM_DELETE_BUTTON } from "./generated/i18n/i18n-defaults.js" ;
11
11
import { i18n } from "@ui5/webcomponents-base/dist/decorators.js" ;
12
12
import type I18nBundle from "@ui5/webcomponents-base/dist/i18nBundle.js" ;
13
-
13
+ // @ts -expect-error
14
+ import encodeXML from "@ui5/webcomponents-base/dist/sap/base/security/encodeXML.js" ;
14
15
/**
15
16
* @class
16
17
*
@@ -136,7 +137,7 @@ class SearchItem extends ListItemBase {
136
137
super . onBeforeRendering ( ) ;
137
138
138
139
// bold the matched text
139
- this . _markupText = this . highlightText ? generateHighlightedMarkup ( ( this . text || "" ) , this . highlightText ) : ( this . text || "" ) ;
140
+ this . _markupText = this . highlightText ? generateHighlightedMarkup ( ( this . text || "" ) , this . highlightText ) : encodeXML ( this . text || "" ) ;
140
141
}
141
142
142
143
get _deleteButtonTooltip ( ) {
You can’t perform that action at this time.
0 commit comments