function svgToText()
{
- var data = "<svg id=\"kochSVG\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"400\" height=\"400\">";
- data += "<path id=\"line\" style=\"stroke:"+document.getElementById("stroke").value+"; fill:"+document.getElementById("fill").value+"; stroke-width:"+document.getElementById("stroke-width").value+"px;\" d=\""+document.getElementById("line").getAttribute("d")+"\"/>";
+ var data = "<svg id='kochSVG' xmlns='http://www.w3.org/2000/svg' version='1.1' width='400' height='400'>";
+ data += "<path id='line' style='stroke:"+document.getElementById("stroke").value+"; fill:"+document.getElementById("fill").value+"; stroke-width:"+document.getElementById("stroke-width").value+"px;' d='"+document.getElementById("line").getAttribute("d")+"'/>";
data += "</svg>"
var win = window.open("image/svg+xml");
win.document.write(data);