From 3c86717fc64d05f434ca8350df2791fdd80eb533 Mon Sep 17 00:00:00 2001
From: Bob Mottram hello
+ """
+ if '"' not in content:
+ return content
+
+ sections = content.split('"')
+ if len(sections) <= 2:
+ return content
+
+ newContent = ''
+ openQuote = True
+ noOfSections = len(sections)
+ ctr = 0
+ for s in sections:
+ newContent += s
+ if ctr < noOfSections - 1:
+ if openQuote:
+ newContent += ''
+ else:
+ newContent += '
'
+ openQuote = not openQuote
+ ctr += 1
+ return newContent
+
+
def dangerousMarkup(content: str) -> bool:
"""Returns true if the given content contains dangerous html markup
"""
@@ -433,6 +460,7 @@ def removeHtml(content: str) -> str:
if '<' not in content:
return content
removing = False
+ content = content.replace('', '"').replace('
', '"')
result = ''
for ch in content:
if ch == '<':
@@ -608,7 +636,7 @@ def addHtmlTags(baseDir: str, httpPrefix: str,
if longWordsList:
content = removeLongWords(content, maxWordLength, longWordsList)
content = content.replace(' --linebreak-- ', '
') - return '
' + content + '
' + return '' + htmlReplaceQuoteMarks(content) + '
' def getMentionsFromHtml(htmlText: str, diff --git a/fonts/solidaric.woff2 b/fonts/solidaric.woff2 index 167ef2237a40658e02b8e54edcd16eaab283374f..0fda1beef353ba7eb22eef2a664e0cd22b50442e 100644 GIT binary patch literal 29968 zcmV((K;XZ3Pew8T0RR910Cf-m5C8xG0QN)x0CcVZ0RR9100000000000000000000 z0000#Mn+Uk92y)Ouv#2224Db#3J3%d2nvI!K!UMZ3xQey0X7081A{6AAO(aX2Z9nC z=(t5kaE}9+k`gmBAZ#4+2E(k6ikeMYDU|(xJ&+zW8ti}C2tSw&fq_)O2icf4UdtIxYYd`JDut> zXDIuKePX>;n!Em<*k^;HJjQ#miOU=2(iso9#~U2UdXpbCk32RZ8q$-VaqMz@uM!qv zGqoS~ct^};r?7p5aRyj|&@y*1cJzI*W`ut zbU?+%gQO1*_T0%PV@so{3uB^#+||*88qkiQ#=MhRRiJq^l{o{~e})G(zQgGn_DOW- znH$U @cgt z&|nH&AWV)bLqt^I**JItdd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