I'd like to dynamically check a paragraph for a list of words and then wrap those words in a span tag if found.
Example:
<p class="para">
My house is red and my front door is blue.
</p>
How could I check for the words 'house', 'red', 'door', and 'blue', as well as any others I might add to the paragraph, and then wrap them in a simple span tag which I can then style with css?
I've searched and found answers for individual words, but being a complete novice I'm not sure how to check for a list of them which I can add to.