diff --git a/js/modules/exporting.src.js b/js/modules/exporting.src.js
index d5113d00d77..dcd1faf41e7 100644
--- a/js/modules/exporting.src.js
+++ b/js/modules/exporting.src.js
@@ -206,12 +206,13 @@ extend(Chart.prototype, {
.replace(/isShadow="[^"]+"/g, '')
.replace(/symbolName="[^"]+"/g, '')
.replace(/jQuery[0-9]+="[^"]+"/g, '')
+ .replace(/url\(("|")(\S+)("|")\)/g, 'url($2)')
.replace(/url\([^#]+#/g, 'url(#')
.replace(/')
+ .replace(/<\/svg>.*?$/, '')
// Batik doesn't support rgba fills and strokes (#3095)
.replace(/(fill|stroke)="rgba\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\.]+)\)"/g, '$1="rgb($2)" $1-opacity="$3"')
/* This fails in IE < 8
@@ -263,7 +264,7 @@ extend(Chart.prototype, {
html,
options = merge(chart.options, additionalOptions), // copy the options and add extra options
allowHTML = options.exporting.allowHTML;
-
+
// IE compatibility hack for generating SVG content that it doesn't really understand
if (!doc.createElementNS) {
@@ -360,7 +361,7 @@ extend(Chart.prototype, {
html = '' +
'' +
html[1] +
- '' +
+ '