As of now you can get the body type (HTML or text) of a message from an add-in through the Body.getTypeAsync API.
We would like a Body.setTypeAsync method for changing the body type:
setTypeAsync(coercionType: Office.CoercionTypeOptions, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;