Escape non-source characters in the encoder
This commit is contained in:
@ -17,3 +17,5 @@ spec = describe "value" $ do
|
||||
value minified (String "\\") `shouldBe` "\"\\\\\""
|
||||
it "escapes quotes" $
|
||||
value minified (String "\"") `shouldBe` "\"\\\"\""
|
||||
it "escapes backspace" $
|
||||
value minified (String "a\bc") `shouldBe` "\"a\\bc\""
|
||||
|
Reference in New Issue
Block a user