feat(keyboard): ship AI hint carousel, home library cards, and clipboard polish
Rotate AI idle suggestions with optional remote packs, move history/dictionary onto self-sizing Home preview cards, harden clipboard capture/prompting, and simplify keyboard chrome by dropping most liquid-glass shadows.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// PromptXMLEscaping.swift
|
||||
// OSGKeyboard · Shared
|
||||
//
|
||||
// Escapes untrusted prompt data embedded in XML-like text nodes.
|
||||
|
||||
import Foundation
|
||||
|
||||
enum PromptXMLEscaping {
|
||||
static func escapeTextContent(_ text: String) -> String {
|
||||
text
|
||||
.replacingOccurrences(of: "&", with: "&")
|
||||
.replacingOccurrences(of: "<", with: "<")
|
||||
.replacingOccurrences(of: ">", with: ">")
|
||||
.replacingOccurrences(of: "\"", with: """)
|
||||
.replacingOccurrences(of: "'", with: "'")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user