We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0535c5 commit 3210c8cCopy full SHA for 3210c8c
grails-test-suite-web/src/test/groovy/org/codehaus/groovy/grails/web/converters/JSONConverterTests.groovy
@@ -138,6 +138,12 @@ class JSONConverterTests extends AbstractGrailsControllerTests {
138
def str = 'Hi, this is my "test"'
139
def json = new grails.converters.JSON([a:str])
140
assertEquals('{"a":"Hi, this is my \\"test\\""}', json.toString())
141
+
142
+ }
143
144
+ // GRAILS-11517
145
+ void testMoreStringsWithQuotes2() {
146
+ assertEquals('{"key":"<a href=\\"#\\" class=\\"link\\">link<\\u002fa>"}',(['key': '<a href="#" class="link">link</a>'] as JSON).toString())
147
}
148
149
void onSetUp() {
0 commit comments