How can I use .replace() with regex for </?span>, as in this question? (this regex would ideally match <span> or </span>, including all things within the span)
I have tried a variety of examples, such as:
.replace(/</?span>/,"")
.replace(/</?span>/g,"")
.replace(/[</?span>]/,"")
.replace(/[</?span>]/g,"")