return html content in getMessages