def METHOD_NAME(self):
    """Return receipt data in formatted way to be included inline in a html page"""
    response = ""
    if self.receipt:
        content_type = self.receipt_content_type()
        data = BytesIO()
        for chunk in self.receipt.chunks():
            data.write(chunk)
        data = b64encode(data.getvalue()).decode()
        if content_type == "application/pdf":
            response = "<object data='data:application/pdf;base64,%s' type='application/pdf' width='100%%' height='100%%'></object>" % data
        else:
            response = "<img src='data:%s;base64,%s' class='receipt'>" % (content_type, data)
    return response