I have been trying to get clean mail data from Microsoft Graph API into a Django template.
I have tried using
headers={'Prefer': 'outlook.body-content-type="text"'}
and
headers={'Prefer': 'outlook.body-content-type="html"'}
in my python GET
request but both of them result in data with tags in them. I have tried using regex to clean my data but it is not as effective because regex removes some important texts.
Is there a simpler way of getting a cleaner mail data?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…