This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

HTML Control is Encoding Special Characters

6 years ago · Last reply by Andrew Misplon 6 years ago

I am trying to use the HTML control to embed a YouTube video. The built in YouTube and/or Video controls do not do what I need, in particular, they do not allow me to insert parameters to control how the video plays. However, the HTML control really isn’t working for this purpose either as it keeps replacing the ampersands (&) contained within the URL QueryString with “&”.

I need for the ampersands to remain ampersands and not be HTML encoded. When these characters are encoded, the functionality breaks. I need for the URL to be like http://www.someurl.com/somepage.asp?param1=1&param2=2 and not have those ampersands converted to HTML encoded characters.

How do I accomplish that?

Here is an example of what I am inputting:

<iframe width="560" height="315" src="https://www.youtube.com/embed/XXXXXXX?controls=0&autoplay=1&iv_load_policy=3&loop=1&modestbranding=1" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe>

And here is what it is being converted to:

<iframe width="560" height="315" src="https://www.youtube.com/embed/XXXXXXX?controls=0&autoplay=1&iv_load_policy=3&loop=1&modestbranding=1" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe>

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Andrew Misplon Staff 6 years, 3 months ago

    Hi Josh

    Thanks for reaching out. Have you perhaps tried the Custom HTML widget for the embed?

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread