Skip to content

Commit

Permalink
Merge pull request #246 from Kyome22/fix-entities
Browse files Browse the repository at this point in the history
Changed entities from Dictionary to Tuple Array
  • Loading branch information
tid-kijyun authored Dec 15, 2020
2 parents 9760f64 + 2d935fd commit b63ada9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Kanna/libxmlHTMLNode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ private func libxmlGetNodeContent(_ nodePtr: xmlNodePtr) -> String? {
}

let entities = [
"&": "&",
"<": "&lt;",
">": "&gt;"
("&", "&amp;"),
("<", "&lt;"),
(">", "&gt;")
]

private func escape(_ str: String) -> String {
Expand Down

0 comments on commit b63ada9

Please sign in to comment.