MCPcopy Create free account
hub / github.com/Bitmessage/PyBitmessage / replace_post

Method replace_post

src/bitmessageqt/safehtmlparser.py:37–42  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

35
36 @staticmethod
37 def replace_post(text):
38 for a in SafeHTMLParser.replaces_post:
39 text = text.replace(a[0], a[1])
40 if len(text) > 1 and text[0] == " ":
41 text = " " + text[1:]
42 return text
43
44 def __init__(self, *args, **kwargs):
45 HTMLParser.__init__(self, *args, **kwargs)

Callers 1

feedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected