'Markup that\'s hazardous for editing should be stripped'

def test_editor_safety_filter(self):

    doc_src = '\n                                                <svg><circle    onload=confirm(3)>\n                                                <h1    class="header1">Header    One</h1>\n                                                <p>test</p>\n                                                <section>\n                                                                <h1    class="header2">Header    Two</h1>\n                                                                <p>test</p>\n                                                </section>\n                                                <h1    class="header3">Header    Three</h1>\n                                                <p>test</p>\n                                '
    expected_src = '\n                                                <svg><circle>\n                                                <h1    class="header1">Header    One</h1>\n                                                <p>test</p>\n                                                <section>\n                                                                <h1    class="header2">Header    Two</h1>\n                                                                <p>test</p>\n                                                </section>\n                                                <h1    class="header3">Header    Three</h1>\n                                                <p>test</p>\n                                '
    result_src = kuma.wiki.content.parse(doc_src).filterEditorSafety().serialize()
    eq_(normalize_html(expected_src), normalize_html(result_src))
