I guess you can have it both ways if you use the following global (I took your and changed it slightly):
my $tag = shift;
$tag = GT::CGI::html_escape($tag);
$tag =~ s/\n/<BR>\n/g;
$tag =~ s,\[(/?i)\],<$1>,g;
$tag =~ s,\[(/?b)\],<$1>,g;
$tag =~ s,(\S+@\S+\.\S+),<a href="mailto:$1">$1</a>,sg;
$tag =~ s,(http://\S+),<a href="$1" target=_blank>$1</a>,sg;
$tag =~ s,\[([/\w]+)\],<$1>,g;
return $tag;
}then you can just use
<%my_global($Full_Story)%>
in you template (or you can put <%Full_Story%> if you don't want the substitutions done). This works with any other tag, not only Full_Story.
Ivan
-----
Iyengar Yoga Resources / GT Plugins
Code:
sub { my $tag = shift;
$tag = GT::CGI::html_escape($tag);
$tag =~ s/\n/<BR>\n/g;
$tag =~ s,\[(/?i)\],<$1>,g;
$tag =~ s,\[(/?b)\],<$1>,g;
$tag =~ s,(\S+@\S+\.\S+),<a href="mailto:$1">$1</a>,sg;
$tag =~ s,(http://\S+),<a href="$1" target=_blank>$1</a>,sg;
$tag =~ s,\[([/\w]+)\],<$1>,g;
return $tag;
}
<%my_global($Full_Story)%>
in you template (or you can put <%Full_Story%> if you don't want the substitutions done). This works with any other tag, not only Full_Story.
Ivan
-----
Iyengar Yoga Resources / GT Plugins