feat: Ports all existing articles and images.
This commit is contained in:
@@ -27,4 +27,11 @@ extension String {
|
||||
|
||||
return prefix(length - end.count).split(separator: " ").dropLast().joined(separator: " ") + end
|
||||
}
|
||||
|
||||
var removeBreaks: String {
|
||||
replacingOccurrences(of: "<br>", with: "")
|
||||
.replacingOccurrences(of: "<br />", with: "")
|
||||
.trimmingCharacters(in: .whitespacesAndNewlines)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user