Skip to content

Commit

Permalink
fix: remove xmlns from tags
Browse files Browse the repository at this point in the history
  • Loading branch information
deltork committed Oct 10, 2024
1 parent 9b9e74a commit f62cc04
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/studio-web/src/app/editor/editor.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,9 @@ export class EditorComponent implements OnDestroy, OnInit, AfterViewInit {
const serializer = new XMLSerializer();
const xmlString = serializer
.serializeToString(element)
.replace("arpabet=", "ARPABET=");
console.log(xmlString);
.replace("arpabet=", "ARPABET=")
.replace(/xmlns="[\w\/\:\.]*"/g, "");
//console.log(xmlString);
this.editorService.rasControl$.setValue(
parser.parseFromString(xmlString, "text/xml"),
); // re-parse as XML
Expand Down

0 comments on commit f62cc04

Please sign in to comment.