mirror of https://gitlab.com/bashrc2/epicyon
Valid markup go br
parent
1a15d07dfd
commit
3f44e0c881
|
@ -24,7 +24,7 @@ def dangerousMarkup(content: str) -> bool:
|
||||||
contentSections = content.split('<')
|
contentSections = content.split('<')
|
||||||
invalidStrings = ('script', 'canvas', 'style', 'abbr',
|
invalidStrings = ('script', 'canvas', 'style', 'abbr',
|
||||||
'frame', 'iframe', 'html', 'body',
|
'frame', 'iframe', 'html', 'body',
|
||||||
'hr', 'br')
|
'hr')
|
||||||
for markup in contentSections:
|
for markup in contentSections:
|
||||||
if '>' not in markup:
|
if '>' not in markup:
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue