MCPcopy Index your code
hub / github.com/RedSiege/EyeWitness / sanitize

Method sanitize

Python/modules/objects.py:301–306  ·  view source on GitHub ↗
(self, incoming_html)

Source from the content-addressed store, hash-verified

299 return html
300
301 def sanitize(self, incoming_html):
302 if type(incoming_html) == bytes:
303 pass
304 else:
305 incoming_html = incoming_html.encode()
306 return html.escape(incoming_html.decode(), quote=True)
307
308 def add_ua_data(self, uaobject):
309 difference = abs(len(self.source_code) - len(uaobject.source_code))

Callers 2

create_table_htmlMethod · 0.95
create_table_htmlMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected