From 86b85d5ede6d989043ef381c3cc76d077b97e3e5 Mon Sep 17 00:00:00 2001 From: Arijit Basu Date: Mon, 12 Feb 2024 14:02:29 +0530 Subject: [PATCH] Be kind --- tiptapy/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tiptapy/__init__.py b/tiptapy/__init__.py index a9e19a0..5bab49e 100644 --- a/tiptapy/__init__.py +++ b/tiptapy/__init__.py @@ -56,7 +56,8 @@ def handle_starttag(self, tag, attrs): return if self.iframe: - raise ValueError("Only one iframe tag is allowed") + # Ignore more than one iframe + return _attrs = " ".join( [k if v is None else f'{escape(k)}="{escape(v)}"' for k, v in attrs]