I have a string that I want to get text from:
var text = "<p>This is awesome and</p> <p>some random</p> and <custom>complex boring text</custom> <p>I</p> <custom>really need to clean</custom> up my room. that feel"
I want to get the text from all the <custom /> tags in a array. I am trying to get this result:
['complex boring text', 'really need to clean']
How can I do this?