Home>Support>HTML Control is Encoding Special Characters

HTML Control is Encoding Special Characters

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

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. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 5 years, 7 months ago Andrew Misplon
    Hi, I Work Here

    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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More