Does icalendar support HTML and CSS?

2019-06-07 03:50发布

I am attempting to create a ICalendar with a html description using the X-ALT-DESC;FMTTYPE=text/html: but it does not appear to support inline CSS for layout/styling is there anyway of making CSS work within an icalendar?

3条回答
聊天终结者
2楼-- · 2019-06-07 04:28

RFC 5545 (the iCalendar specification) allows you to use HTML, but that's a different thing from the calendar clients supporting it. I suspect that you'll find it rare that any of the non-browser-based calendars will do so.

查看更多
Anthone
3楼-- · 2019-06-07 04:29

As opposed to what jgm implied, the RFC5545 does not have provisions for html.

The only back-door is via the ALTREP parameter (see RFC for more details)

However this implicitly refers to icalendar invitation sent by emails (as it is most often using the CID URI), but other URI like HTTP(S) could also be used though less often so.

Also you should be aware that RFC5545 compliance is far from complete even from the most prominent calendars (google calendars for instance only aims at RFC2445 (which was obsoleted by RFC5545),...)

Also the X-ALT-DESC is a MSFT specific extension (see MSND on iCalendar/X-ALT-DESC) which.

So coming back to your question, which calendars do you want to support your .ics file and be able to render in?

查看更多
劫难
4楼-- · 2019-06-07 04:31

hcalendar converts to icalendar; hcalendar is a microformats icalendar implementation. check out more http://microformats.org/wiki/hcalendar

查看更多
登录 后发表回答