From 2d935fdc0a9699cf7cceb7628e1ffe4228b56d03 Mon Sep 17 00:00:00 2001 From: Kyome22 Date: Tue, 15 Dec 2020 11:39:57 +0900 Subject: [PATCH] Changed `entities` from `Dictionary` to `Tuple Array` --- Sources/Kanna/libxmlHTMLNode.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Kanna/libxmlHTMLNode.swift b/Sources/Kanna/libxmlHTMLNode.swift index a59daee..84cec79 100755 --- a/Sources/Kanna/libxmlHTMLNode.swift +++ b/Sources/Kanna/libxmlHTMLNode.swift @@ -216,9 +216,9 @@ private func libxmlGetNodeContent(_ nodePtr: xmlNodePtr) -> String? { } let entities = [ - "&": "&", - "<": "<", - ">": ">" + ("&", "&"), + ("<", "<"), + (">", ">") ] private func escape(_ str: String) -> String {