'Render a <div> for a message that applies to the entire response.
*response_msg* is a string, which may contain XHTML markup
Returns an etree element representing the response message <div>'

def _render_response_msg_html(self, response_msg):

    try:
        response_msg_div = etree.XML(('<div>%s</div>' % str(response_msg)))
    except Exception:
        response_msg_div = etree.Element('div')
        response_msg_div.text = str(response_msg)
    response_msg_div.set('class', 'response_message')
    return response_msg_div
