views:

86

answers:

1

I am working on a calendar application that outputs a list of events in hCalendar format. This includes an element that has a class of "description" which should be used for the event's description. My question is, what markup is allowed in my hCalendar event's description?

I found one example on the hCalendar website that showed a description with <br /> tags in it, but every other example was brief and had no additional markup in the description.

+2  A: 

As far as Microformats are concerned, you can use any valid HTML markup in the description (and everywhere else).

However, the iCalendar format, which is often used for extraction of hCalendars, only allows plain text in the description.

Use any markup you need, but be prepared that Microformat parsers will convert it to plain text, so likely only <br>, <p> will work, and other elements will have no effect.

porneL