Skip to content

Commit 86e4d75

Browse files
committed
test: add test case for #7223
1 parent 73a89bf commit 86e4d75

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Diff for: test/ssr/ssr-string.spec.js

+14
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,20 @@ describe('SSR: renderToString', () => {
11121112
done()
11131113
})
11141114
})
1115+
1116+
// #7223
1117+
it('should not double escape attribute values', done => {
1118+
renderVmWithOptions({
1119+
template: `
1120+
<div>
1121+
<div id="a\nb"></div>
1122+
</div>
1123+
`
1124+
}, result => {
1125+
expect(result).toContain(`<div id="a\nb"></div>`)
1126+
done()
1127+
})
1128+
})
11151129
})
11161130

11171131
function renderVmWithOptions (options, cb) {

0 commit comments

Comments
 (0)