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 <a href="http://www.cnn.com">lesson</a>
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 'a'.
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.