Customize event caption from the calendar

Hi

I work with vaadin 7.1.15

I want update 2 things on my event caption display :

  • ignore the display of hour in the caption of my events. (partially do with css)
  • and no use Util.escapeHTML because my actual caption can contain

    (sample of caption : Name
    Adress
    City)
Class com.vaadin.client.ui.calendar.schedule.DateCellDayEvent

/**
* @param bigMode
* If false, event is so small that caption must be in time-row
*/
private void updateCaptions(boolean bigMode) {
String innerHtml;
String escapedCaption = Util.escapeHTML(calendarEvent.getCaption());
String timeAsText = calendarEvent.getTimeAsText();
if (bigMode) {
innerHtml = "<span>" + timeAsText + "</span><br />" + escapedCaption;
} else {
innerHtml = "<span>" + timeAsText + "<span>:</span></span> " + escapedCaption;
}
caption.setInnerHTML(innerHtml);
eventContent.setInnerHTML("");
}

The first one, I can partially do with css style but I’ve already
on my caption (out of the span)

.v-calendar-event-caption > span {
display: none;
}