fixed handling of html entities
added ical handling