I have an issue with the tooltips on the Scheduling Gantt task bars. The hover text on the Gantt is set via the tooltipKeys and tooltipLabels properties on the Gantt component We just have it set to one field. The value we want to displaye has linebreaks in it. When the tooltip is rendered, though, the line breaks are gone. That's because what actually gets generated for the tooltips is HTML like this:
<table cellpadding='0' cellspacing='0' style='padding-right:3px;padding-bottom:3px;font-size:11px;font-family:tahoma'><tr><td align='right'>taskName: </td><td>Task
101</td></tr></table>
Notice that my line break is there, between "Task" and "101". But because this text is inside a <td> tag, line breaks are ignored.
I tried adding <br> but the text is escaped so that it comes out like this: <br>
So, do I have any options here? What are the "best practices" for displaying formatted data in these tooltips? More specifically, when a list of contents is to be displayed. Is there any way around the escaping? (I understand that there are risks, but I can make sure to do escaping inside the data to be displayed, before the line breaks are added.) Or is there any magic text I can include in my string to force line breaks, that won't get escaped? Is there another way to implement tooltips where I can control the display myself?