2 messages in com.googlegroups.google-calendar-help-dataapiRe: enter HTML in Description
FromSent OnAttachments
Duane06 Apr 2007 12:03 
Ryan Boyd (Google)07 Apr 2007 15:18 
Subject:Re: enter HTML in Description
From:Ryan Boyd (Google) (api.@google.com)
Date:04/07/2007 03:18:03 PM
List:com.googlegroups.google-calendar-help-dataapi

Hello Duane,

Most HTML content is not currently supported in the content or title elements of an event. However, it does look like you can do it by encoding the < and > symbols (probably only < is required.. but encoding both makes it more uniform).:

Here's an example string that worked for me: Meet for a quick &lt;a href="http://www.cnn.com"&gt;lesson&lt;/a&gt;

Cheers, -Ryan

On Apr 6, 12:03 pm, "Duane" <dwan@gmail.com> wrote:

I have created a .NET application that inserts events into my google calendar.

Now I want to figure out how to enter through the API HTML in the description field. I can enter HTML using the normal calendar user interface. I have noticed that when using the normal UI the link is mangled a bit to look like
this:http://www.google.com/url?sa=D&sntz=1&q=http%3A%2F%2Fwww.yahoo.com&us...

Ideally I want to be able to enter in the description field: <a href="http://www.yahoo.com">My link</a>

The error I receive is this: [Line 6, Column 71, element content] Unrecognized element &#39;a&#39;.

The basic bit of code is:

EventEntry entry = new EventEntry(); entry.Title.Text = "Some event title"; entry.Content.Content = "<a href=\"http://www.yahoo.com \">Link</a>";

The error occurs during: AtomEntry insertedEntry = myService.Insert(postUri, entry);

Thanks.