 
         message  = @props.message
         prepared = @_prepareMessage()
+
         if @state.messageDisplayHTML and prepared.html
             {messageDisplayHTML, images} = @prepareHTML prepared
             imagesWarning = images.length > 0 and

    displayImages: (event) ->
        event.preventDefault()
        @setState messageDisplayImages: true

    displayHTML: (event) ->
        event.preventDefault()

            </head><body>#{prepared.html}</body></html>"""
        doc    = parser.parseFromString html, "text/html"
        images = []

        if not doc
            doc = document.implementation.createHTMLDocument("")
            doc.documentElement.innerHTML = html

        if not doc
            console.log "Unable to parse HTML content of message"
            messageDisplayHTML = false

        if doc and not @state.messageDisplayImages
            hideImage = (image) ->
                image.dataset.src = image.getAttribute 'src'
                image.removeAttribute 'src'
            images = doc.querySelectorAll 'IMG[src]'
            hideImage image for image in images

        for link in doc.querySelectorAll 'a[href]'
            link.target = '_blank'

        if doc?
            @_htmlContent = doc.documentElement.innerHTML
        else
