I am still looking for a solution to this problem: I want LSQL to accept line breaks, hotlink email addresses and urls -- but also to accept html. (I am fine with tagging <b> and <i> in html. Right now it requires [b][/b][i][/i]
Is this at all possible? I don't want to be stuck formatting all my tags in [markup]. And sometimes I'd like to add a form, or a photo to a detailed page in html. This global seems to cut off that option.
Anyway, if someone can help I'd be so appreciative! The current global I have right now is:
sub {
my $tags = shift;
my $Full_Story = $tags->{Full_Story};
$Full_Story = GT::CGI::html_escape($Full_Story);
$Full_Story =~ s/\n/<BR>\n/g;
$Full_Story =~ s,\[(/?i)\],<$1>,g;
$Full_Story =~ s,\[(/?b)\],<$1>,g;
$Full_Story =~ s,(\S+@\S+\.\S+),<a href="mailto:$1">$1</a>,sg;
$Full_Story =~ s,(http://\S+),<a href="$1" target=_blank>$1</a>,sg;
$Full_Story =~ s,\[([/\w]+)\],<$1>,g;
return $Full_Story;
}
Is this at all possible? I don't want to be stuck formatting all my tags in [markup]. And sometimes I'd like to add a form, or a photo to a detailed page in html. This global seems to cut off that option.
Anyway, if someone can help I'd be so appreciative! The current global I have right now is:
sub {
my $tags = shift;
my $Full_Story = $tags->{Full_Story};
$Full_Story = GT::CGI::html_escape($Full_Story);
$Full_Story =~ s/\n/<BR>\n/g;
$Full_Story =~ s,\[(/?i)\],<$1>,g;
$Full_Story =~ s,\[(/?b)\],<$1>,g;
$Full_Story =~ s,(\S+@\S+\.\S+),<a href="mailto:$1">$1</a>,sg;
$Full_Story =~ s,(http://\S+),<a href="$1" target=_blank>$1</a>,sg;
$Full_Story =~ s,\[([/\w]+)\],<$1>,g;
return $Full_Story;
}