mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-08 11:46:25 -04:00
Update SwiftUI/Model/SearchOperation/SearchOperation.swift
This commit is contained in:
parent
752072a988
commit
873ef432fd
@ -39,7 +39,8 @@ extension SearchOperation {
|
|||||||
let data = html.data(using: .utf8) else { return }
|
let data = html.data(using: .utf8) else { return }
|
||||||
result.snippet = try? NSAttributedString(
|
result.snippet = try? NSAttributedString(
|
||||||
data: data,
|
data: data,
|
||||||
options: [.documentType: NSAttributedString.DocumentType.html, .characterEncoding: String.Encoding.utf8.rawValue],
|
options: [.documentType: NSAttributedString.DocumentType.html,
|
||||||
|
.characterEncoding: String.Encoding.utf8.rawValue],
|
||||||
documentAttributes: nil
|
documentAttributes: nil
|
||||||
)
|
)
|
||||||
case .disabled:
|
case .disabled:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user