Automatically create hyperlink based on span class Does anyone have any idea how I can do this? I want my content writer to be able to add span classes to certain numerical amounts that then automatically hyperlink to a pre-defined URL. Example:


  And the price at John's hardware shop is&lt;span class="john-shop"&gt;$2.35&lt;/span&gt;


I am fully aware there is a module called Word Link Which does a fantastic job of hyperlinking specific keywords but as numerical amounts are not specific to anything this is a tad more challenging. What I mean by this is in Word Link you can say:

"coca cola" - link automatically to www.cocacola.com
"Nike" - link automatically to www.nike.com 

"$5.67" is just a number so a span class would be approriate.

Grateful for any help.
You could do this in your field-template file. 

&lt;?php foreach($class in $classes)): ?&gt;
  &lt;?php if ($class == 'johns' ): ?&gt;
    // do something
  &lt;?php endif; ?&gt;
  &lt;?php if ($class == 'sarahs' ): ?&gt;
    // do something
  &lt;?php endif; ?&gt;
&lt;?php endforeach; ?&gt;


Downside this way is you need to maintain a list in the templatefile.