html_safe my ass

element
Marcin Kulik 9 years ago
parent f1cf67412e
commit 38b899c65a

@ -18,7 +18,7 @@ module AsciicastsHelper
def embed_script(asciicast)
src = asciicast_url(asciicast, format: :js)
id = "asciicast-#{asciicast.to_param}"
%(<script type="text/javascript" src="#{src}" id="#{id}" async></script>).html_safe
%(<script type="text/javascript" src="#{src}" id="#{id}" async></script>)
end
def embed_html_link(asciicast)

@ -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.

Loading…
Cancel
Save