Line break in a control's tooltip

I noticed that if I use "\n" to insert a line break in a tooltip (either via Control.SetTooltip() or in a markup control using the corresponding tag), the text is passed "as is".

Is there a way to include a line break in a control's tooltip? Sometimes it's necessary to make the legend more understandable.

Thanks.

Dlg.Control("button1").SetTooltip("blah\nblah\ntip");

But if you load the same string via DOpus.strings, the line break does not appear. Even if you use an actual line break in the string.

I added .replace(/\\n/g, "\n") and it worked. Not exactly elegant, of course...

Thanks, I can work with this.

In 13.14.1 we added ScriptStrings.GetEscaped which handles jscript-style escaped characters automatically.