From ef358c23fa7e537a09acc9c1377c28eb4becc0d4 Mon Sep 17 00:00:00 2001 From: Ryan Hendrickson Date: Mon, 29 Nov 2021 17:29:35 -0500 Subject: [PATCH 1/2] Fix double-encoding of quotation marks --- staging/src/TryPureScript.purs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staging/src/TryPureScript.purs b/staging/src/TryPureScript.purs index 92e24132..4a930a6f 100644 --- a/staging/src/TryPureScript.purs +++ b/staging/src/TryPureScript.purs @@ -30,8 +30,8 @@ encode :: String -> String encode = replaceAll (Pattern "<") (Replacement "<") <<< replaceAll (Pattern ">") (Replacement ">") - <<< replaceAll (Pattern "&") (Replacement "&") <<< replaceAll (Pattern "\"") (Replacement """) + <<< replaceAll (Pattern "&") (Replacement "&") -- must be replaced before all the others! foreign import withConsoleImpl :: forall a From bfa484dcfab621b5cd1c13f4ce9b6eb497ce6838 Mon Sep 17 00:00:00 2001 From: Ryan Hendrickson Date: Mon, 29 Nov 2021 17:41:44 -0500 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cffc8b5d..742b8d01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ Bugfixes: Other improvements: - Update package set to `psc-0.14.5-20211111` (#260 by @JordanMartinez) +- Fix double-encoding of quotation marks (#261 by @rhendric) ## [v2021-11-11.1](https://github.com/purescript/trypurescript/releases/tag/v2021-11-11.1)