Fix crash when data nodes present in converted HTML

This commit is contained in:
Shadowfacts 2023-02-23 10:03:21 -05:00
parent 2252b6d09e
commit bcc70e9f8c
1 changed files with 2 additions and 0 deletions

View File

@ -134,6 +134,8 @@ struct HTMLConverter {
}
return attributed
case is DataNode:
return NSAttributedString()
default:
fatalError("Unexpected node type \(type(of: node))")
}