@@ -187,14 +187,14 @@ class Label {
187187
188188 if ( typeof label === 'string' ) {
189189 if ( ! this . singleLabel ) {
190- this . container . innerHTML = '' ;
190+ this . container . innerText = '' ;
191191 dom . removeClass ( this . container , 'multiple' ) ;
192192 this . singleLabel = dom . append ( this . container , dom . $ ( 'a.label-name' , { id : options ?. domId } ) ) ;
193193 }
194194
195195 this . singleLabel . textContent = label ;
196196 } else {
197- this . container . innerHTML = '' ;
197+ this . container . innerText = '' ;
198198 dom . addClass ( this . container , 'multiple' ) ;
199199 this . singleLabel = undefined ;
200200
@@ -250,15 +250,15 @@ class LabelWithHighlights {
250250
251251 if ( typeof label === 'string' ) {
252252 if ( ! this . singleLabel ) {
253- this . container . innerHTML = '' ;
253+ this . container . innerText = '' ;
254254 dom . removeClass ( this . container , 'multiple' ) ;
255255 this . singleLabel = new HighlightedLabel ( dom . append ( this . container , dom . $ ( 'a.label-name' , { id : options ?. domId } ) ) , this . supportCodicons ) ;
256256 }
257257
258258 this . singleLabel . set ( label , options ?. matches , options ?. title , options ?. labelEscapeNewLines ) ;
259259 } else {
260260
261- this . container . innerHTML = '' ;
261+ this . container . innerText = '' ;
262262 dom . addClass ( this . container , 'multiple' ) ;
263263 this . singleLabel = undefined ;
264264
0 commit comments