Skip to content

Commit

Permalink
repalce " with quot
Browse files Browse the repository at this point in the history
  • Loading branch information
beam41 committed Jul 1, 2024
1 parent 3c048ab commit 156c4f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function draw(game) {
$(
"style",
{ type: "text/css" },
"@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:[email protected]&display=swap');",
"@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:[email protected]&display=swap');",
),
),
$("image", {
Expand Down
2 changes: 1 addition & 1 deletion src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function xmlElement(tag, attrs, ...children) {

if (attrs) {
for (const [name, value] of Object.entries(attrs)) {
element += ` ${name}="${value.replaceAll('"', '\\"')}"`;
element += ` ${name}="${value.replaceAll('"', """)}"`;
}
}

Expand Down

0 comments on commit 156c4f8

Please sign in to comment.