Skip to content

Commit d1ed7a6

Browse files
authored
Update renderer.go
1 parent ef79eef commit d1ed7a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/markup/renderer.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"context"
1010
"errors"
1111
"fmt"
12+
"html"
1213
"io"
1314
"net/url"
1415
"path/filepath"
@@ -231,7 +232,7 @@ sandbox="%s"
231232
url.PathEscape(ctx.Metas["repo"]),
232233
ctx.Metas["BranchNameSubURL"],
233234
url.PathEscape(ctx.RelativePath),
234-
iframeSandbox,
235+
html.EscapeString(iframeSandbox),
235236
))
236237
return err
237238
}

0 commit comments

Comments
 (0)