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) 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