Search This Site

Custom Search

Thursday, January 20, 2011

Re: [bloggerDev] Extracting unchanged content from a post

Hey Rob, 

I suspect you have uncovered a bug in our .Net GData API.

Can you boil this down to a simple c# or vb console app and log a bug against the issue tracker? 

Please ping me with the issue number so that I can track it from this end.

brett

On Fri, Jan 21, 2011 at 2:57 AM, Rob <robfine@gmail.com> wrote:
Hey all,

I am using the .NET API to pull the content from a blog I author about
tips and tricks I run across while developing websites and
applications, but I've lately run into an issue where the content I
pull is not exactly the same as what's being posted on blogspot.

Due to the nature of my blog, I'm constantly needing to display html
tags such as <body id="example"> but to have this display properly on
blogspot, I write it out as &lt;body id="example"&gt;

However, when I pull my feed from the .NET API and extract the content
via thisFeedEntry.Content.Content, all of the blog content comes
already rendered with brackets instead of the ampersand encodings.

I tried doing a replace on all brackets to transform them back to &gt;
and &lt; but of course that changed all of the content's source code
over including line breaks, div panels and links. I don't want that.

Here's a good example of what I'm experiencing.
My blogspot shows the text <body runat="server" id="masterbody"> fine
here:
http://atlantawebsites.blogspot.com/2011/01/aspnet-body-onload-error-bc30456.html
But when I pull it over through the API, the text with bracket
disappears at the browser is attempting to render it:
http://robfine.com/aspnet/ResolvingBodyOnLoadErrorBC30456whenrunatServer

Is there a way to pull the code exactly as is in blogspot with the
&gt; and &lt; text still intact?

Any help would be greatly appreciated.
Thanks!

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.




--

Brett Morgan

Developer Programs Engineer, Blogger

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

No comments:

Post a Comment