File tree 1 file changed +1
-7
lines changed
1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 428
428
node . setAttribute ( 'xmlns' , 'http://www.w3.org/1999/xhtml' ) ;
429
429
return new XMLSerializer ( ) . serializeToString ( node ) ;
430
430
} )
431
- . then ( util . escapeXhtml )
432
431
. then ( function ( xhtml ) {
433
432
return '<foreignObject x="0" y="0" width="100%" height="100%">' + xhtml + '</foreignObject>' ;
434
433
} )
437
436
foreignObject + '</svg>' ;
438
437
} )
439
438
. then ( function ( svg ) {
440
- return 'data:image/svg+xml;charset=utf-8,' + svg ;
439
+ return encodeURI ( 'data:image/svg+xml;charset=utf-8,' ) + encodeURIComponent ( svg ) ;
441
440
} ) ;
442
441
}
443
442
454
453
uid : uid ( ) ,
455
454
delay : delay ,
456
455
asArray : asArray ,
457
- escapeXhtml : escapeXhtml ,
458
456
makeImage : makeImage ,
459
457
width : width ,
460
458
height : height
643
641
return array ;
644
642
}
645
643
646
- function escapeXhtml ( string ) {
647
- return string . replace ( / # / g, '%23' ) . replace ( / \n / g, '%0A' ) ;
648
- }
649
-
650
644
function width ( node ) {
651
645
var leftBorder = px ( node , 'border-left-width' ) ;
652
646
var rightBorder = px ( node , 'border-right-width' ) ;
You can’t perform that action at this time.
0 commit comments