# File lib/maruku/output/to_html.rb, line 806
        def to_html_raw_html
                return [] if get_setting(:filter_html)
                
                raw_html = self.raw_html
                if rexml_doc = @parsed_html
                        root = rexml_doc.root
                        if root.nil?
                                s = "Bug in REXML: root() of Document is nil: \n#{rexml_doc.inspect}\n"+
                                "Raw HTML:\n#{raw_html.inspect}"
                                maruku_error s
                                tell_user 'The REXML version you have has a bug, omitting HTML'
                                div = Element.new 'div'
                                #div << Text.new(s)
                                return div
                        end
                        
                        # copies the @children array (FIXME is it deep?)
                        elements =  root.to_a 
                        return elements
                else # invalid
                        # Creates red box with offending HTML
                        tell_user "Wrapping bad html in a PRE with class 'markdown-html-error'\n"+
                                add_tabs(raw_html,1,'|')
                        pre = Element.new('pre')
                        pre.attributes['style'] = 'border: solid 3px red; background-color: pink'
                        pre.attributes['class'] = 'markdown-html-error'
                        pre << Text.new("REXML could not parse this XML/HTML: \n#{raw_html}", true)
                        return pre
                end
        end