MCPcopy Index your code
hub / github.com/clips/pattern / clean

Method clean

pattern/web/__init__.py:677–685  ·  view source on GitHub ↗
(self, html)

Source from the content-addressed store, hash-verified

675 self.handle_endtag(tag)
676
677 def clean(self, html):
678 html = decode_utf8(html)
679 html = html.replace("/>", " />")
680 html = html.replace(" />", " />")
681 html = html.replace("<!", "&lt;!")
682 html = html.replace("&lt;!DOCTYPE", "<!DOCTYPE")
683 html = html.replace("&lt;!doctype", "<!doctype")
684 html = html.replace("&lt;!--", "<!--")
685 return html
686
687
688 def parse_declaration(self, i):

Callers 2

cleanMethod · 0.45
parseMethod · 0.45

Calls 1

decode_utf8Function · 0.85

Tested by

no test coverage detected