Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sayanarijit committed Feb 12, 2024
1 parent bada636 commit d8a3afc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tiptapy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ class IFrameParser(HTMLParser):

def __init__(self):
super().__init__()
self.is_reading = False
self.depth = 0
self.data = []

Expand All @@ -67,11 +66,9 @@ def handle_endtag(self, tag):
return
self.data.append(f"</{tag}>")
self.depth -= 1
if self.depth == 0:
self.is_reading = False

def handle_data(self, data):
if not self.is_reading:
if self.depth <= 0:
return
self.data.append(data)

Expand Down

0 comments on commit d8a3afc

Please sign in to comment.