3๐
โ
I used this line so it worked:
document.getElementById("SVG-container-name").innerHTML = svgContext.getSerializedSvg(true);
Source:stackexchange.com