Since it's too difficult to implement HTML rendering, you should adjust your InnerHTML depending on DayPilotCalendar.IsExport value (true during export).
I'm considering the following improvements for the future:
- adding a simplified HTML rendering (selected tags like <b>, <a>, <img>)
- option to render the event rectangle manually in BeforeEventRender
I believe #2 would be more powerful.