diff options
Diffstat (limited to 'src/try_gleam.gleam')
-rw-r--r-- | src/try_gleam.gleam | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/try_gleam.gleam b/src/try_gleam.gleam index f441722..0be0ace 100644 --- a/src/try_gleam.gleam +++ b/src/try_gleam.gleam @@ -386,7 +386,9 @@ fn page_html(page: Page) -> String { ]), h("aside", [#("id", "output")], []), ]), - h("script", [#("type", "gleam"), #("id", "code")], [text(page.code)]), + h("script", [#("type", "gleam"), #("id", "code")], [ + htmb.dangerous_unescaped_fragment(string_builder.from_string(page.code)), + ]), h("script", [#("type", "module"), #("src", "/index.js")], []), ]), ]) |