Bugger, that had an undesired effect :(
It was converting words insde the <a href, and giving really weird output.
Only way I eventually got it to work was wit this bit of messy code:
if ($hit->{TheText}) {
$desc =~ s|\Q $_ | <a href="$hit->{LinkURL}" title="$hit->
+{TheText}" target="$hit->{Target}">$_</a> |sg;
$desc =~ s|\Q $_\E$| <a href="$hit->{LinkURL}" title="$hit
+->{TheText}" target="$hit->{Target}">$_</a>|sg;
$desc =~ s|\Q $_,| <a href="$hit->{LinkURL}" title="$hit->
+{TheText}" target="$hit->{Target}">$_</a>, |sg;
$desc =~ s|\Q. $_ |. <a href="$hit->{LinkURL}" title="$hit
+->{TheText}" target="$hit->{Target}">$_</a> |sg;
} else {
$desc =~ s|\Q $_ | <a href="$hit->{LinkURL}" target="$hit-
+>{Target}">$_</a> |sg;
$desc =~ s|\Q $_\E$| <a href="$hit->{LinkURL}" target="$hi
+t->{Target}">$_</a>|sg;
$desc =~ s|\Q $_, | <a href="$hit->{LinkURL}" target="$hit
+->{Target}">$_</a>, |sg;
$desc =~ s|\Q. $_ |. <a href="$hit->{LinkURL}" target="$hi
+t->{Target}">$_</a> |sg;
}
Cheers
Andy |