JSFiddle - React, Tailwind, and code Playground

by joshmoto

JavaScript

var str = 'test <mark>too</mark> hello';
str = str.replaceAll(/<(\/?|\!?)(mark)>/g, "");
console.log(str);