I am receiving a notification json object that contains an attribute message
. notification.message
is a string that takes the form "<strong>BOLD ME</strong> more words here."
How can I pass this string into a ListItemText from MUI such that it bolds the wanted part of the message? Right now, it just displays the string “BOLD ME more words here.” with the tags visible.
<ListItemText
primary={notification.message}
/>