diff --git a/feincms3/embedding.py b/feincms3/embedding.py index a654091..a645578 100644 --- a/feincms3/embedding.py +++ b/feincms3/embedding.py @@ -52,8 +52,9 @@ def embed_youtube(url): d = match.groupdict() return mark_safe( f'
" ) diff --git a/tests/testapp/test_embedding.py b/tests/testapp/test_embedding.py index 8e7cd1c..acf6718 100644 --- a/tests/testapp/test_embedding.py +++ b/tests/testapp/test_embedding.py @@ -13,7 +13,8 @@ def test_youtube(): == """\ """ +allow="autoplay; fullscreen" referrerpolicy="strict-origin-when-cross-origin" \ +allowfullscreen="">""" ) assert ( @@ -21,7 +22,8 @@ def test_youtube(): == """\ """ +allow="autoplay; fullscreen" referrerpolicy="strict-origin-when-cross-origin" \ +allowfullscreen="">""" ) assert embed("https://www.youtube.com/watch?v=4zGnNmncJWg&feature=emb_title") @@ -34,7 +36,10 @@ def test_youtube(): assert ( embed("https://www.youtube.com/live/ljSZ0xrJjCs") == """\ -""" +""" )