Thanks to visit codestin.com Credit goes to github.com
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 a7341b9 commit b729a59Copy full SHA for b729a59
src/snapshot/tosvg.js
@@ -114,7 +114,7 @@ module.exports = function toSVG(gd, format) {
114
// Is this an IE thing? Any other attributes or style elements that can have quotes in them?
115
// TODO: this looks like a noop right now - what happened to it?
116
var ff = txt.style('font-family');
117
- if(ff && ff.indexOf('"') !== -1) txt.style('font-family', ff.replace(/"/g, '"'));
+ if(ff && ff.indexOf('"') !== -1) txt.style('font-family', ff.replace(/"/g, '\\\''));
118
});
119
120
if(format === 'pdf' || format === 'eps') {
0 commit comments