Accepted answer

As far as I can recall jQuery's .html() makes use of innerHTML which is meant for html, not svg. SVG's are xml documents, so you can use XMLSerializer()

var svg = document.getElementById('svg_root'); // or whatever you call it
var serializer = new XMLSerializer();
var str = serializer.serializeToString(svg);


For the problem you are not getting your svg content,
If only one svg chart is on page then use:


and if more than present then please see there is a div of highcharts_container because they create that svg charts. If you are using them.
Then use:

$('id of that div').html();

Related Query

More Query from same tag