from unittest import TestCase from openslides.utils.validate import validate_html_strict class ValidatorTest(TestCase): def test_XSS_protection(self): data = "tuveegi2Ho

tuveegi2Ho

Boovai7esu
ee4Yaiw0ei" self.assertEqual( validate_html_strict(data), "tuveegi2Ho

tuveegi2Ho<script>kekj9(djwk</script>

Boovai7esu
ee4Yaiw0ei", )