i have a data as below;
var item = [
{
id: 3391396,
content:
'D <span class="searchmatch">A</span> (born 17 December 2004) is a swimmer specialized in freestyle swimming. She qualified for the 800m freestyle event of the 2020 Summer',
},
{
id: 49247051,
content:
'The footballer <span class="searchmatch">A</span> Demir (born 1979), Macedonian football player <span class="searchmatch">A</span> Irizik (born 1964), Swiss footballer <span class="searchmatch">A</span> Tombak (born 1999),',
},
{
id: 38317336,
content:
'<span class="searchmatch">A</span> Selan (born 4 December 1977) is a Macedonian-Turkish stage and screen actor. He was born in Skopje, SR Macedonia, SFR Yugoslavia. He is of Turkish',
},
];
I want to remove every "<span class="searchmatch">
" and it's correlated "</span>
" from all of them with split&join || replaceAll method but i couldn't reach all objects with for loop, how can i do it? Thanks.