Skip to content

Commit

Permalink
Ensure stylesheet content is not escaped
Browse files Browse the repository at this point in the history
  • Loading branch information
bcardarella committed Jan 16, 2024
1 parent 859ef2f commit 0c598b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/live_view_native/stylesheet/component.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ defmodule LiveViewNative.Stylesheet.Component do
module
|> LiveViewNative.Stylesheet.file_path()
|> File.read!()
|> Phoenix.HTML.raw()

assigns = Map.put(assigns, :sheet, sheet)

Expand All @@ -33,6 +34,7 @@ defmodule LiveViewNative.Stylesheet.Component do
csrf_token = Phoenix.Controller.get_csrf_token()

assigns = Map.put(assigns, :csrf_token, csrf_token)

~LVN"""
<csrf-token value={@csrf_token} />
"""
Expand Down

0 comments on commit 0c598b8

Please sign in to comment.