Commit fd5252d0 authored by Ronny's avatar Ronny

修复节点含有nbsp不能导出

parent 5f88c758
......@@ -3,7 +3,8 @@ KityMinder.registerProtocal( "svg", function () {
fileDescription: 'SVG 矢量图',
fileExtension: '.svg',
encode: function ( json, km ) {
return km.getPaper().container.innerHTML;
// svg 含有   符号导出报错 Entity 'nbsp' not defined
return km.getPaper().container.innerHTML.replace(/ /g, ' ');
},
recognizePriority: -1
};
......
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