There is an html page:
<p> какой-то текст найди </p> <p> меня еще какой-то текст </p> And there is a phrase
"найди меня" It is required to highlight it on this page. The phrase can intersect with any tags, as in the example.
As an option, you should get something like this:
<p> какой-то текст <span class="red">найди</span> </p> <p> <span class="red">меня</span> еще какой-то текст </p> How to do this using php?