More replacements

main
Bob Mottram 2020-05-02 17:23:40 +00:00
parent e2c7648d0b
commit a807e2167e
1 changed files with 1 additions and 0 deletions

1
git.py
View File

@ -15,6 +15,7 @@ def gitFormatContent(content: str) -> str:
"""
contentStr = content.replace('<br>', '\n').replace('<br \\>', '\n')
contentStr = contentStr.replace('<p>', '').replace('</p>', '\n')
contentSTr = contentStr.replace('&lt;', '<').replace('&gt;', '>')
if 'From ' in contentStr:
contentStr = 'From ' + contentStr.split('From ', 1)[1]
return contentStr