refactor: Remove unused stripHTMLSimple method from StringExtensions
- Remove stripHTMLSimple regex-based HTML stripping method - Keep stripHTML with NSAttributedString-based implementation (used in codebase) - Method was not used anywhere in the project
This commit is contained in:
parent
fcf6c3e441
commit
358037427c
@ -13,17 +13,5 @@ extension String {
|
||||
)
|
||||
|
||||
return attributedString?.string ?? self
|
||||
}
|
||||
|
||||
var stripHTMLSimple: String {
|
||||
// Einfache Regex-basierte HTML-Entfernung
|
||||
return self.replacingOccurrences(of: "<[^>]+>", with: "", options: .regularExpression, range: nil)
|
||||
.replacingOccurrences(of: " ", with: " ")
|
||||
.replacingOccurrences(of: "&", with: "&")
|
||||
.replacingOccurrences(of: "<", with: "<")
|
||||
.replacingOccurrences(of: ">", with: ">")
|
||||
.replacingOccurrences(of: """, with: "\"")
|
||||
.replacingOccurrences(of: "'", with: "'")
|
||||
.trimmingCharacters(in: .whitespacesAndNewlines)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user