diff --git a/kbbi/kbbi.py b/kbbi/kbbi.py index f1bd1e3..95a0bc0 100644 --- a/kbbi/kbbi.py +++ b/kbbi/kbbi.py @@ -334,7 +334,10 @@ def _init_rujukan(self, rujukan): def _init_submakna(self, makna_label): rujukan = makna_label.find("a") - if rujukan: + entris = makna_label.find("span", class_="entrisButton") + if entris: + entris.extract() + if rujukan and not rujukan.find("span", style="color:red"): self._init_rujukan(rujukan) elif makna_label.get("color") == "darkgreen": self._init_prakategorial(makna_label)