@@ -116,14 +116,14 @@ class TableLinked {
116116 const formattedApp = DataUtils . formatAppName ( app ) ;
117117 const link = document . createElement ( 'a' ) ;
118118 link . setAttribute ( 'href' , `/reports/techreport/tech?tech=${ app } &geo=${ geo } &rank=${ rank } ` ) ;
119- link . innerHTML = formattedApp ;
119+ link . innerText = formattedApp ;
120120 wrapper . append ( link ) ;
121121 cell . append ( wrapper ) ;
122122 } else if ( column . type === 'checkbox' ) {
123123 cell = this . addColumnCheckbox ( app ) ;
124124 } else if ( column . key === 'client' ) {
125125 cell = document . createElement ( 'td' ) ;
126- cell . innerHTML = component . dataset . client ;
126+ cell . innerText = UIUtils . capitalizeFirstLetter ( component . dataset . client ) ;
127127 } else {
128128 const cellContent = document . createElement ( 'span' ) ;
129129 cell = document . createElement ( 'td' ) ;
@@ -132,9 +132,9 @@ class TableLinked {
132132 const changeStyle = UIUtils . getChangeStatus ( value ?. [ component . dataset . client ] ?. momPerc ) ;
133133 value = value ?. [ component . dataset . client ] ?. [ column ?. metric ] ;
134134 if ( column . suffix ) {
135- cellContent . innerHTML = `${ value ?. toLocaleString ( ) } ${ column . suffix } ` ;
135+ cellContent . innerText = `${ value ?. toLocaleString ( ) } ${ column . suffix } ` ;
136136 } else {
137- cellContent . innerHTML = `${ value ?. toLocaleString ( ) } ` ;
137+ cellContent . innerText = `${ value ?. toLocaleString ( ) } ` ;
138138 }
139139
140140 if ( column . viz === 'progress' ) {
@@ -265,7 +265,7 @@ class TableLinked {
265265 }
266266
267267 appLinkEl . setAttribute ( 'href' , href ) ;
268- appLinkEl . innerHTML = label ;
268+ appLinkEl . innerText = label ;
269269 } ) ;
270270
271271 if ( this . selectedTechs . length > 0 ) {
@@ -320,7 +320,7 @@ class TableLinked {
320320 this . data = result . data ;
321321 this . updateContent ( ) ;
322322 const rowsAnnouncement = document . getElementById ( 'rows-announcement' ) ;
323- rowsAnnouncement . innerHTML = `Showing ${ this . rows } rows.` ;
323+ rowsAnnouncement . innerText = `Showing ${ this . rows } rows.` ;
324324 }
325325}
326326
0 commit comments