Keep accented characters while highlighting text (wrapping in <span> tags) – PHP
I am using the following code to search and highlight accented text. The problem I am facing is that it removes accented text while highlighting. Is there anyway to keep accents? echo highlightTerm("Would you like a café, Mister Kàpêk?", "kape…