Customize marker text to icon or html tags

Team, i want to customize the marker title to svg icon or content code as text field accepts only string.

Please help me on this.
image

Hello Balaji,
You can return SVG or HTML elements inside the string and specify them in the text parameter:
https://docs.dhtmlx.com/gantt/desktop__markers.html#:~:text=Now"%2C%20//-,the%20marker%20title,-title%3A%20dateToStr

https://docs.dhtmlx.com/gantt/api__gantt_addmarker.html#:~:text=text%3F%20-%20(string%20|%20number)%20-%20the%20marker%20title

Here is an example:
https://snippet.dhtmlx.com/113n7l6e