Encode the URL in the "src" attribute
-
<iframe id='1' class='StefanoAI-youtube-responsive ' width='160' height='90' src='//www.youtube.com/embed/XXX?&autohide=2&color=red&controls=1&disablekb=0&fs=1&iv_load_policy=1&loop=0&modestbranding=0&rel=0&theme=dark' frameborder='0' allowfullscreen="true" style=''></iframe>
Please escape the URL: & =>
& amp;
Line 73, add:
$urlEsc = esc_attr("$url$idvideo?$autohide$autoplay$cc_load$cc_lang$color$controls$disablekb$end$fs$iv_load_policy$loop$modestbranding$rel$showinfo$start$theme$quality");
Then in line 79, use:
src='$urlEsc'
https://www.ads-software.com/plugins/youtube-widget-responsive/
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Encode the URL in the "src" attribute’ is closed to new replies.