Hi,
I am making an ZML feed but run into errors with Whitespaces...
I have used the following Global to strip the content from things that could damage XML - but still get an error.
my $tags = shift;
my $review = $tags;
$review = GT::CGI::html_escape($review);
$review =~ s/^\s+|\s+$//g;
$review =~ s/\n/<BR \/>/g;
$review =~ s/\<\;BR>\;/<BR \/>/g;
return $review;
}
Any suggestions are welcomed...
Klaus
http://www.ameinfo.com
I am making an ZML feed but run into errors with Whitespaces...
I have used the following Global to strip the content from things that could damage XML - but still get an error.
Code:
sub { my $tags = shift;
my $review = $tags;
$review = GT::CGI::html_escape($review);
$review =~ s/^\s+|\s+$//g;
$review =~ s/\n/<BR \/>/g;
$review =~ s/\<\;BR>\;/<BR \/>/g;
return $review;
}
Any suggestions are welcomed...
Klaus
http://www.ameinfo.com