from unittest import TestCase from openslides.utils.validate import validate_html_strict class ValidatorTest(TestCase): def test_XSS_protection(self): data = "tuveegi2Hotuveegi2HoBoovai7esuee4Yaiw0ei" self.assertEqual( validate_html_strict(data), "tuveegi2Hotuveegi2Ho<script>kekj9(djwk</script>Boovai7esuee4Yaiw0ei", )
tuveegi2Ho
tuveegi2Ho<script>kekj9(djwk</script>