Display enumeration in a list


I have a enumeration as a string in my payload:


I want to display it in my dashboard. It should look like this:

How can I do this?

Split the string and reform with html unordered list tags

msg.payload = "<ul><li>"+msg.payload.split(";").join("</li><li>")+"</li></ul>"
return msg;

Thanks. That works for me. Than I use the following lines in my template node:

<div ng-bind-html="msg.payload"></div>

Is this ok?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.