0
votes

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 ?

2
Why do you have to render the OneNote page? Why not simply redirect to OneNote?Jorge Aguirre
My application syncs down the onenote pages to my system and then it will become part of my system so I don't want to redirectPooja Dhannawat

2 Answers

1
votes

Where are you trying to render this content? Or are you trying to send it back to the OneNote API?

Since this data-tag is a custom attribute, you would need your own custom code to render it on a web page for example.

0
votes

You'll have to 1. Get the images associated with each tag - you can use the link below for the full list 2. Make the API call 3. Write code that replaces each data tag with the proper

https://msdn.microsoft.com/en-us/library/office/mt159148.aspx