Commit 5f88c758 authored by Ronny's avatar Ronny

修复节点含有nbsp不能导出

parent 2f04976b
......@@ -31,6 +31,10 @@ KityMinder.registerProtocal( "png", function () {
renderContainer.translate( -renderBox.x, -renderBox.y );
svgXml = km.getPaper().container.innerHTML;
// svg 含有   符号导出报错 Entity 'nbsp' not defined
svgXml = svgXml.replace(/ /g, ' ').replace(/\s+/g, ' ');
console.log(svgXml);
renderContainer.translate( renderBox.x, renderBox.y );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment