See this page:
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":
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
# Decode HTML encoded characters
$post_message=~ s(\<) (<)g;
$post_message=~ s(\>) (>)g;
$post_message=~ s(\&) (&)g;
I've gotten it started - do we need to add all these?