<a class="embed_video" href="{{$embedurl}}" onclick="this.innerHTML=window.atob('{{$escapedhtml}}'); this.classList.add('active'); return false;"> <img width="{{$tw}}" height="{{$th}}" src="{{$turl}}"> <div style="width: {{$tw}}px; height: {{$th}}px;"></div> </a>