Skip to content

Commit

Permalink
No need to add data in iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
sayanarijit committed Feb 12, 2024
1 parent aae0590 commit 5d9be4d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tiptapy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ class IFrameParser(HTMLParser):
def __init__(self):
super().__init__()
self.iframe = ""
self.is_complete = False

def handle_starttag(self, tag, attrs):
if tag != self.allowed_tag:
Expand All @@ -68,11 +67,6 @@ def handle_endtag(self, tag):
if tag != self.allowed_tag:
return
self.iframe += f"</{tag}>"
self.is_complete = True

def handle_data(self, data):
if self.iframe and not self.is_complete:
self.iframe += data


def escape_values_recursive(node):
Expand Down

0 comments on commit 5d9be4d

Please sign in to comment.