Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default function(
{ url, title, embedUrl, description, thumbnail },
thumbClassName,
showPlayIcon = false
) {
return `<div class="ejs-preview ejs-embed"><div style="background-image:url(${thumbnail})" data-url="${embedUrl}" class="ejs-thumb ${thumbClassName}">${showPlayIcon ? '<span>►</span>' : ''}</div><div class="ejs-info"><h4 class="ejs-title"><a href="${url}">${title}</a></h4><div class="ejs-desc">${truncate(
description,
150
)}</div></div></div>`
}