I'm not sure what you're after? Are you just looking for the last ten postings - or are you in search of xml? My website "engine" makes use of rss / xml feeds.
See this page:
http://nerock.com/cheesyportal.pl
The issue that gotze mentioned - invalid characters is a problem. I have not had time to fix it - bad characters will have to be stripped out.
I love a challenge. You always learn something along the way. Here is a start @ a hot_chop that will filter out "bad html":
sub {
my $post_message = shift;
$post_message=~ s/^\s*//; # leading spaces
$post_message=~ s/\s*$//; # trailing spaces
$post_message=~ s/\s+/ /g; # multiple spaces
#
# Strip HTML tags
#
$post_message=~ s(<[^>]*>)()g;
#
# Decode HTML encoded characters
#
$post_message=~ s(\<) (<)g;
$post_message=~ s(\>) (>)g;
$post_message=~ s(\&) (&)g;
return substr($post_message,0,125);
}
I've gotten it started - do we need to add all these?
http://developer.netscape.com/docs/manuals/htmlguid/tags22.htm
See this page:
http://nerock.com/cheesyportal.pl
The issue that gotze mentioned - invalid characters is a problem. I have not had time to fix it - bad characters will have to be stripped out.
I love a challenge. You always learn something along the way. Here is a start @ a hot_chop that will filter out "bad html":
sub {
my $post_message = shift;
$post_message=~ s/^\s*//; # leading spaces
$post_message=~ s/\s*$//; # trailing spaces
$post_message=~ s/\s+/ /g; # multiple spaces
#
# Strip HTML tags
#
$post_message=~ s(<[^>]*>)()g;
#
# Decode HTML encoded characters
#
$post_message=~ s(\<) (<)g;
$post_message=~ s(\>) (>)g;
$post_message=~ s(\&) (&)g;
return substr($post_message,0,125);
}
I've gotten it started - do we need to add all these?
http://developer.netscape.com/docs/manuals/htmlguid/tags22.htm