mirror of https://gitlab.com/bashrc2/epicyon
Only html format quotes if there are a few
If there are lots then things can get out of handmain
parent
4eecbe56af
commit
1b24bc664a
|
@ -103,6 +103,12 @@ def htmlReplaceQuoteMarks(content: str) -> str:
|
||||||
if '"' not in content:
|
if '"' not in content:
|
||||||
return 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
|
newContent = content
|
||||||
if '"' in content:
|
if '"' in content:
|
||||||
sections = content.split('"')
|
sections = content.split('"')
|
||||||
|
|
Loading…
Reference in New Issue