mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-01-19 05:33:47 +01:00
use isinstance, not type
This commit is contained in:
parent
2ec150fd13
commit
824baa4f2a
@ -79,7 +79,7 @@ class Connection(Compat):
|
||||
CLEANR = re.compile("<.*?>|&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-f]{1,6});")
|
||||
|
||||
def cleanhtml(raw_html):
|
||||
if type(raw_html) == str:
|
||||
if isinstance(raw_html, str):
|
||||
cleantext = re.sub(CLEANR, "", raw_html)
|
||||
return cleantext
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user