mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 20:39:24 +00:00
Remove more DTCoreText/Foundation references as they are no longer directly imported or used
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user