Only html format quotes if there are a few

If there are lots then things can get out of hand
main
Bob Mottram 2020-10-30 12:03:29 +00:00
parent 4eecbe56af
commit 1b24bc664a
1 changed files with 6 additions and 0 deletions

View File

@ -103,6 +103,12 @@ def htmlReplaceQuoteMarks(content: str) -> str:
if '"' not in content:
return content
# only if there are a few quote marks
if content.count('"') > 4:
return content
if content.count('"') > 4:
return content
newContent = content
if '"' in content:
sections = content.split('"')