Código:
function removeHtmlTag(e, t) { if (e.indexOf("<") != -1) { var n = e.split("<"); for (var r = 0; r < n.length; r++) { if (n[r].indexOf(">") != -1) { n[r] = n[r].substring(n[r].indexOf(">") + 1, n[r].length) } } e = n.join("") } t = t < e.length - 1 ? t : e.length - 2; while (e.charAt(t - 1) != " " && e.indexOf(" ", t) != -1) t++; e = e.substring(0, t - 1); return e + "" } function createSummaryAndThumb(e, t, n) { var r = document.getElementById(e); var i = document.getElementById(n); var s = /\/s([01]?[0-5]?[0-9]?[0-9]|1600)[^0-9]/; var o = '<a href="' + t + '" title=""><img alt="" src="#" width="' + iwh + 'px" height="' + iwh + 'px"/></a>'; var u = r.getElementsByTagName("img"); if (u.length >= 1) { o = '<a class="toptip" href="' + t + '" data-title="' + n + '"><img alt="' + n + '" src="' + u[0].src.replace(s, "/s" + iwh + "-c/") + '" width="' + iwh + 'px" height="' + iwh + 'px"/><div class="overlay"><i class="fa fa-play-circle fa-3x"></i></div></a>' } var a = o; r.innerHTML = a } var iwh = 245;