I have this string:
'<span contenteditable="false" field=“something1”>Text I want 1</span>
<span contenteditable="false" field=“something2”>Text I want 2</span>
<span style="color:#000000;">Text that I dont want. </span>'
How would I get an array of [‘Text I want 1’, ‘Text I want 2’]?
Right now I get all of the text, including ‘Text that I dont want’ by doing
/</?span[^>]*>(.*?)</span>/g
However, that gets all span tags. How would I get the text between specifically span contenteditable=”false”?