<% local function escape_xml(str) return tostring(str):gsub("&", "&"):gsub("'", "'"):gsub(">", ">"):gsub("<", "<"):gsub("\"", """) end local function escape_double_quotes(str) return tostring(str):gsub("\"", """) end local function line_break(str) return tostring(str):gsub("\r\n", "
"):gsub("\r", "
"):gsub("\n", "
"):gsub("
", "
") end local function strip_control_characters(str) local s = "" for i in tostring(str):gmatch("%C+") do s = s .. i end return s end local function get_rgba(hex, opacity) local h = tostring(hex):gsub("#", "") return "rgba(" .. tonumber(h:sub(1, 2), 16) .. "," .. tonumber(h:sub(3, 4), 16) .. "," .. tonumber(h:sub(5, 6), 16) .. "," .. tonumber(opacity, 10) / 100 .. ")" end local function trim(str) return tostring(str):gsub("^%s*(.-)%s*$", "%1") end local function trim_slashes(str) return tostring(str):gsub("^(.-)/*$", "%1") end %> <%= escape_xml(model.juicebox.galleryTitle) %> <% local url = trim(trim_slashes(model.extra.shareUrl)) %>
<% if model.extra.addSEOContent then %> <% end %>