If you happen to know Kontera - the in-text advertisement system- you'd be familiar with what I am asking.
I want to do the exact same thing, but with my own list of words, and something very simple.
For example, for every person that places my script in their site, if the words "cat" or "dog" are found, then all those words would be replaced by <a href=...>cat</a> and <a href=..>dog</a>, automatically.
Do they use the function replace? or go through the whole page structure using DOM? or regular expressions? How do they do it so as to not mess up the HTML code?
And most importantly, their generated HTML, has no links on the code, when you hover over them. However the links actually work. How is that possible? The code shows it has no link href ="#", although the links still work..
I would really appreaciate if anybody could guide me.
THANK YOU VERY MUCH IN ADVANCE.
I really appreciate your time.