Hello there,
I have difficulties displaying a text that I get from a XmlListModel in a zone (sent when clicked on a ListView Item).
The text appears without new lines.
I basically do something like this:
function changeDescription(newDesc)
{
descText.text = "<b>Description:</b> " + newDesc
}
I tried to change the textFormat or even replacing the “<br/>” with “<br>” as it works on another string (but using “\n” didn’t improve either):
var newLineStr = newDesc.toString().replace("<br/>", "<br>")
When I’m looking at the string in console, the new lines appear.
Any help would be appreciated.
↧