Non-breaking space is not treated in ui_update.label

I am trying to space fields in a ui-text node. The msg.payload accepts '&nbsp' as a space, but the msg.ui_update.label does not. Is there any other way to get multiple spaces into the label?

Hi @selwynjackson - welcome to the community.

I actually went to answer, _"just include spaces in the msg.payload, e.g. "My Payload", but you're right, that clears the spaces, and from research, is actually just how HTML works.

I thought we parsed that label content as HTML, but it appears we do not. I'll get a bug/issue opened to get that resolved.

Update: Issue Opened: Support HTML in ui_update.label for UI Text node Ā· Issue #1346 Ā· FlowFuse/node-red-dashboard Ā· GitHub

Thank you, @joepavitt

Pull request is created and ready for review:

2 Likes