Fix crash when data nodes present in converted HTML
This commit is contained in:
parent
2252b6d09e
commit
bcc70e9f8c
|
@ -134,6 +134,8 @@ struct HTMLConverter {
|
|||
}
|
||||
|
||||
return attributed
|
||||
case is DataNode:
|
||||
return NSAttributedString()
|
||||
default:
|
||||
fatalError("Unexpected node type \(type(of: node))")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue