def test_locale_html_xss():
    testfield = Mock()

    # same language: no need for attributes
    testfield.locale = '<script>alert(1)</script>'
    s = helpers.locale_html(testfield)
    assert '<script>' not in s
    assert '&lt;script&gt;alert(1)&lt;/script&gt;' in s
Delete an entry.
dataset/ETHPy150Open mozilla/addons-server/src/olympia/translations/tests/test_helpers.py/test_locale_html_xss--crossover with--dataset/ETHPy150Open taoliu/taolib/CoreLib/DB/DataCollection.py/DBDataCollection.delete