I have big problem, I'm using preg_replace() function for my highlighter function, after searching for particular keyword, once the hightler check box is checked it will highlight the content that matches the search keyword, the problem is, it also highlight the text inside the HTML tags that matches the keywords.
here's the screenshot:

I need a preg_replace() function that will not replace the text inside HTML tags, particularly <img /> tag
you help will be appreciated, thanks!
here's the screenshot:
I need a preg_replace() function that will not replace the text inside HTML tags, particularly <img /> tag
you help will be appreciated, thanks!
Comment