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" <[EMAIL PROTECTED]> 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.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to