How to add values and features from dict to html.H1() text

I want to return a string from a callback that is fed to html.H1 with the following to achieve


dict = {‘Price’: {‘value’: 21 ,‘color’ : ‘red’,‘icon’:“&#9733”} , ‘Change’: {‘value’: .34 ,‘color’ : ‘green’ ,‘icon’:“&#9742”} }
html code used to dsplay icon is mentioned above

How can I return a string with these feature added