diff --git a/app/helpers/asciicasts_helper.rb b/app/helpers/asciicasts_helper.rb index 8e413af..e38f82b 100644 --- a/app/helpers/asciicasts_helper.rb +++ b/app/helpers/asciicasts_helper.rb @@ -18,7 +18,7 @@ module AsciicastsHelper def embed_script(asciicast) src = asciicast_url(asciicast, format: :js) id = "asciicast-#{asciicast.to_param}" - %().html_safe + %() end def embed_html_link(asciicast) diff --git a/app/views/asciicasts/example.html.slim b/app/views/asciicasts/example.html.slim index 281bb4c..34fd9a1 100644 --- a/app/views/asciicasts/example.html.slim +++ b/app/views/asciicasts/example.html.slim @@ -5,12 +5,12 @@ p Some pilots get picked and become television programs. Some don't, become nothing. She starred in one of the ones that became nothing. -= embed_script @asciicast += embed_script(@asciicast).html_safe p ' And now again. There should be an embedded player below this paragraph. -= embed_script @asciicast += embed_script(@asciicast).html_safe p ' This is at the bottom of the page, below all players.