I am using typescript.
i have and object called Reason as below. i have defined all the variables in the object as string. (value, display, dataType and label as string)
Reason = {
value: '<ul><li>list item 1</li><li>list item 2</li></ul>',
display: '<ul><li>list item 1</li><li>list item 2</li></ul>',
dataType: 'string',
label: 'Reason'}
I want to display this in a div or span tag.
<div> {Reason.value} </div>
it is not getting displayed as
- list item 1
- list item 2
<ul><li>list item 1</li><li>list item 2</li></ul>
please let me know how to parse this text to display it in list elements instead of text.