What I am attempting to do is to convert all <span class="clickable"> tags into clickable links. It is odd that with all the SEO sites around, that nothing like this has been mentioned.
The original code I have is:
Code:
<span class="clickable">Link Text</span>
I am trying to get client-side javascript to convert this on the fly to:
Code:
<span class="clickable"><a href="/archive/link+text">Link Text</a></span>
With the url generated from the link text and put the javascript equivilent of the PHP functions "StrToLower" and "UrlEncode".
Any ideas on how to do this or pointers in the right direction will be worshipped...