Skip to content

Commit

Permalink
Resolve escaped characters in a status
Browse files Browse the repository at this point in the history
Escaped characters are now returned to their original form for
HTMLString.asRawText.
  • Loading branch information
Havhingstor committed May 13, 2024
1 parent 9aaf0b2 commit 5d51073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Packages/Models/Sources/Models/Alias/HTMLString.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public struct HTMLString: Codable, Equatable, Hashable, @unchecked Sendable {
_ = text.removeLast()
_ = text.removeLast()
}
asRawText = text
asRawText = (try? Entities.unescape(text)) ?? ""

if asMarkdown.hasPrefix("\n") {
_ = asMarkdown.removeFirst()
Expand Down

0 comments on commit 5d51073

Please sign in to comment.