I have this sentence:
span class="searchmatch" Program /span, programme, programmer, or span class="searchmatch" programming /span may refer to: span class="searchmatch" Program /span management, the process of managing several related projects Time management Program
I want to remove all the tags so it will be like:
Program, programme, programmer, or programming may refer to: management, the process of managing several related projects Time management Program.
so I split the sentence into array like this:
const arrayContent = result.snippet.split(' ');
and made a array of the words i want to remove like this:
const removedText = ['span class="searchmatch"', '/span'];
Is there a function that receives two arrays (just like arrayContent and removedText), search if in the first array there is a string that match to a string in the second array and if so, replace it with an empty string?
311522 862814A weblog like yours really should be earning considerably cash from adsense.~::- 673625