From d601a29e35be6f0219152f6ee89a0e8e093be49c Mon Sep 17 00:00:00 2001 From: Adam Fowler Date: Mon, 15 Mar 2021 16:40:37 +0000 Subject: [PATCH] Add quote, apostrophe to list of chars to html escape --- Sources/HummingbirdMustache/String.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/HummingbirdMustache/String.swift b/Sources/HummingbirdMustache/String.swift index eba3037..05940c3 100644 --- a/Sources/HummingbirdMustache/String.swift +++ b/Sources/HummingbirdMustache/String.swift @@ -4,6 +4,8 @@ extension String { "<": "<", ">": ">", "&": "&", + "\"": """, + "'": "'", ] /// HTML escape string. Replace '<', '>' and '&' with HTML escaped versions func htmlEscape() -> String {