I need a script to highlight occurrences of one or more keywords in a text. I have a script in French and I want my script to look for occurrences with special characters and uppercase letters.
My URL is (example): .../?q=être
And I wish the keywords "être", "Être", "etre" and "Etre" to be highlighted.
Is it possible ? (with <mark>...</mark>
)
Example :
Bonjour ceci est un texte avec le verbe <mark>être</mark>, avec la majuscule ça aurait
été <mark>Être</mark>, et sans accent <mark>etre</mark>, puis <mark>Etre</mark>.
So:
- Ignore specials characters
- Ignore uppercase