Forum Moderators: coopster
So I would have a library of about 150 Keyword/url pairs.
And I would need the script to run through the content and replace a keyword by <a href="url">keyword</a>
Of course we need to ignore anything that is in html tags so that a keyword like "title" or "table" does not replace HTML tags. And it would ignore ANY text that is already wrapped inside a link.
Example:
So we would have a keyword library:
"fun", "http://www.somelink.com"
"table", "http://www.sometablestore.com"
etc (about 100 keywords),
and the class would replace any instance of "fun" by <a href="http://www.somelink.com">fun</a>
Anyone knows a nice class for this?
We find a couple, but they were not perfect, and were very slow when we had a lot of keywords.
thanks all for your help