fix(userdata): Dropped sloppy JSOn parser in favour of a true JavaScript AST analyzer
[plugin.video.netflix.git] / resources / lib / utils.py
index 25cd28551f2f5dd77b3b5cf2af1f9c54d261a136..afb056f7994fa7c5a9483bd1a06ca70fad3029c8 100644 (file)
@@ -3,23 +3,6 @@
 # Module: utils
 # Created on: 13.01.2017
 
-# strips html from input
-# used the kick out the junk, when parsing the inline JS objects of the Netflix homepage
-from HTMLParser import HTMLParser
-class MLStripper(HTMLParser):
-    def __init__(self):
-        self.reset()
-        self.fed = []
-    def handle_data(self, d):
-        self.fed.append(d)
-    def get_data(self):
-        return ''.join(self.fed)
-
-def strip_tags(html):
-    s = MLStripper()
-    s.feed(html)
-    return s.get_data()
-
 # Takes everything, does nothing, classic no operation function
 def noop (**kwargs):
     return True