On Sat, Dec 6, 2008 at 5:12 AM, Mirza Ceric <[EMAIL PROTECTED]> wrote:

> Thank you, but HTML is supported by the UI, at least in the event
> description field.

Thank you for the correction. I thought that I had tried that and that
it had not worked. Testing today shows that adding html to the event
description through the UI does work.

In addition, I can post an event through the api that contains html,
but it is weird and I don't know how broadly applicable.

Consider the following content elements:

<code>
<content type='text'><b>Posting fails</b></content>
<content type='html'><b>Converted to plain text</b> in description</content>
<content type='text'>&lt;b&gt;Bold text in &lt;/b&gt; in description</content>
</code>

(In case that doesn't post correctly, here is the gist:
http://gist.github.com/34092 )

Only the last example, posting the content as type='text' and escaping
the angle brackets, works. The first fails to post and the second
posts, but is silently converted to text.

I don't know what the Java HtmlTextConstruct constructor does, but
perhaps you can escape your markup tags.

Hope that helps,

Ray

--~--~---------~--~----~------------~-------~--~----~
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