Home Unanswered Active Tags New Question

how to remove html tag when i export calendar in png image?

hello,

When i am exporting calendar into png image it will display html tag in event description

for example: Event Name: test<br>

Start Time:10:AM<br>

please provide me solutions.

Thanks,

Varsha

Asked by varsha 1 year ago.
Replies

You can do something like this in the BeforeEventRender handler:

if (DayPilotCalendar1.IsExport) {
  e.InnerHTML = e.InnerHTML.Replace("<br/>", "\r\n");
}

See also:

Comment posted by Dan Letecky 1 year ago.

Thank you verry much it is woking fine.

Comment posted by varsha 1 year ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java