|
@ -125,7 +125,7 @@ defmodule Linkify.Builder do |
|
|
|
|
|
|
|
|
def create_youtube(text, _opts) do |
|
|
def create_youtube(text, _opts) do |
|
|
id = get_video_id(text) |
|
|
id = get_video_id(text) |
|
|
"<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/#{id}\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>" |
|
|
|
|
|
|
|
|
"<iframe width=\"560\" height=\"315\" frame-src=\"https://www.youtube.com/embed/#{id}\" default-src=\"https://www.youtube.com/embed/#{id}\" src=\"https://www.youtube.com/embed/#{id}\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>" |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
Enum.each(["", "http://", "https://"], fn protocol -> |
|
|
Enum.each(["", "http://", "https://"], fn protocol -> |
|
|