I am syncing OneNote notebooks into my application using MS graph API. Onenote has few tags like To-Do, Important, Question etc. When I fetch html content for particular page these tags comes as data-tag like in -
<p lang="en-US" data-tag="important" style="margin-top:0pt;margin-bottom:0pt"><span lang="en-GB">Abc</p>
How can I replace these tags with the icon with which they are represented in OneNote UI. If I think to skip these tags the notes look very weird.
What is the way to extract this data ?