HTML in title string of fullcalendar jquery plugin

前端 未结 6 1919
离开以前
离开以前 2021-01-31 08:18

I think the fullcalendar jquery-plugin is a really great solution. However, I noticed the plugin escapes (htmlEscape) the title. But I need to format some strings in the title,

6条回答
  •  鱼传尺愫
    2021-01-31 08:47

    To easily have all html in event titles show I used this, makes it very easy.

    eventRender: function (event, element) {
        element.find('span.fc-event-title').html(element.find('span.fc-event-title').text());           
    }
    

    Which was found here http://code.google.com/p/fullcalendar/issues/detail?id=152

提交回复
热议问题