I have a timeline in which the fields are transformed as shown in the example below. There is also a Calendar Event in which the title field can have the value "<b>test</b> jr <img src=foobar onerror='alert(123);'>". How do I make this event display its escapeHTML = true in the timeline?
Code:
tasksLine = new Timeline(); tasksLine.setNameField(CONSTANT.TITLE); tasksLine.setDescriptionField(CONSTANT.HTMLTEXT); tasksLine.setStartDateField(CONSTANT.BEGINNING_DATE); tasksLine.setEndDateField(CONSTANT.DUE_DATE);
Code:
CalendarEvent
{
"htmlText": "<b>test</b> jr",
"title": "<b>test</b> jr <img src=foobar onerror='alert(123);'>",
"beginningDate": "2020.11.22 23:00:00",
"dueDate": "2020.11.26 22:59:59"
}
Comment