Remove more DTCoreText/Foundation references as they are no longer directly imported or used

This commit is contained in:
Stefan Ceriu
2026-04-16 13:03:56 +03:00
parent d43089ee59
commit a89b33ee43
4 changed files with 2 additions and 99 deletions
@@ -76,10 +76,6 @@ struct AttributedStringBuilder: AttributedStringBuilderProtocol {
/// Do not use the default HTML renderer of NSAttributedString because this method
/// runs on the UI thread which we want to avoid because renderHTMLString is called
/// most of the time from a background thread.
/// Use DTCoreText HTML renderer instead.
/// Using DTCoreText, which renders static string, helps to avoid code injection attacks
/// that could happen with the default HTML renderer of NSAttributedString which is a
/// webview.
func fromHTML(_ htmlString: String?) -> AttributedString? {
guard let originalHTMLString = htmlString else {
return nil