Hi,
Is there some code to add to this Shortened Versions Columns global (found in the resource section) that will remove any occurrences of the following:
" ' < >
sub {
my $tags = shift;
my $desc = $tags->{Description} or return "Non on this template";
length $desc <100 and return $desc;
my $short = substr ($desc, 0, 100);
$short =~ s/\s\S+?$//;
$short .= " ...";
return $short;
}
This way you could add the outputted text into a meta tag without html tags breaking the meta tag.
--------------------------------
Privacy Software
Is there some code to add to this Shortened Versions Columns global (found in the resource section) that will remove any occurrences of the following:
" ' < >
sub {
my $tags = shift;
my $desc = $tags->{Description} or return "Non on this template";
length $desc <100 and return $desc;
my $short = substr ($desc, 0, 100);
$short =~ s/\s\S+?$//;
$short .= " ...";
return $short;
}
This way you could add the outputted text into a meta tag without html tags breaking the meta tag.
--------------------------------
Privacy Software