I am converting SVG to PNG and I need to remove the angularjs attributes in my SVG.
<rect fill="#F9B24F" ry="5" rx="5" ng-attr-y="{{node.rectY}}" ng-attr-x="{{node.rectX}}"
ng-attr-height="{{chart.height}}" ng-attr-width="{{chart.width}}" y="10" x="20"
height="80" width="160">
I need ouput as
<rect fill="#F9B24F" ry="5" rx="5" y="10" x="20"
height="80" width="160">
I am trying to replace using String Replace method in javascript.I have tried the following in console,but it's not working
"ng-repeat='{{dddddsd}}' dfjdzjfhjk".replace(/ng-*\s/g," ");