On Jan 27, 5:25 am, Victor Hadianto <vhad...@gmail.com> wrote:
I've been tearing my hair out on this problem. I'm sure it's something
really silly. Basically I'm trying to post comment to a post
using .NET and this is the code that I'm using:
Ah I found the problem. Seems like Blogger chucks a fit when the
comment body contains HTML tags. I removed all the HTML tags and it's
working OK now.
Hi Victor,
I think you should be able to post comments which contain HTML markup.
I sent an entry with a content of type "html" and the text node was
<b>ok</b>. It posted successfully and showed ok in bold. If I escape
the < and > like this: <b>ok/<b> the comment shows <b>ok</
b> and it is not in bold. The br tag did seem to cause errors though,
so this seems to be a special case. Blogger will take newline
characters and convert them into line breaks, so you can work around
this by replacing the <br> tag with a newline character.
Happy coding,
Jeff