Skip to content

Commit b729a59

Browse files
committed
replace " for \' when wrapping font-family in to-svg step
1 parent a7341b9 commit b729a59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/snapshot/tosvg.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ module.exports = function toSVG(gd, format) {
114114
// Is this an IE thing? Any other attributes or style elements that can have quotes in them?
115115
// TODO: this looks like a noop right now - what happened to it?
116116
var ff = txt.style('font-family');
117-
if(ff && ff.indexOf('"') !== -1) txt.style('font-family', ff.replace(/"/g, '"'));
117+
if(ff && ff.indexOf('"') !== -1) txt.style('font-family', ff.replace(/"/g, '\\\''));
118118
});
119119

120120
if(format === 'pdf' || format === 'eps') {

0 commit comments

Comments
 (0)