html_safe my ass
This commit is contained in:
parent
f1cf67412e
commit
38b899c65a
@ -18,7 +18,7 @@ module AsciicastsHelper
|
|||||||
def embed_script(asciicast)
|
def embed_script(asciicast)
|
||||||
src = asciicast_url(asciicast, format: :js)
|
src = asciicast_url(asciicast, format: :js)
|
||||||
id = "asciicast-#{asciicast.to_param}"
|
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
|
end
|
||||||
|
|
||||||
def embed_html_link(asciicast)
|
def embed_html_link(asciicast)
|
||||||
|
@ -5,12 +5,12 @@ p
|
|||||||
Some pilots get picked and become television programs. Some don't, become
|
Some pilots get picked and become television programs. Some don't, become
|
||||||
nothing. She starred in one of the ones that became nothing.
|
nothing. She starred in one of the ones that became nothing.
|
||||||
|
|
||||||
= embed_script @asciicast
|
= embed_script(@asciicast).html_safe
|
||||||
|
|
||||||
p
|
p
|
||||||
' And now again. There should be an embedded player below this paragraph.
|
' And now again. There should be an embedded player below this paragraph.
|
||||||
|
|
||||||
= embed_script @asciicast
|
= embed_script(@asciicast).html_safe
|
||||||
|
|
||||||
p
|
p
|
||||||
' This is at the bottom of the page, below all players.
|
' This is at the bottom of the page, below all players.
|
||||||
|
Loading…
Reference in New Issue
Block a user