Oct 13, 2012, 12:56 AM
Veteran / Moderator (18436 posts)
Oct 13, 2012, 12:56 AM
Post #2 of 3
Views: 3045
Hi,
You want to replace a word in the description with a link? You could try:
replace_with_link
Code:
sub {
my $string = $_[0];
$string =~ s|\bTHEWORD|<a href="#">THEWORD</a>|g;
return $string;
}
Then call with: <%replace_with_link($Description)%>
Untested, but should work =)
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my
Amazon Wish List GLinks ULTRA Package | GLinks ULTRA Package PRO Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin |
Pre-Made Template Sets |
FREE GLinks Plugins!