I am trying to use a global modifier to replace all instances of below but I keep on getting an error
Function
var chosenParticipants = newParticipants.replace(/<i class="fa fa-minus"></i></span>/g,'</strong>');
Error
Uncaught SyntaxError: Unexpected token <
/in</i>. Hopefully that would give you a clue, or jog your memory, about the need to escape slashes.