`rel=0` on youtube href returning error

Joseph 's Avatar

Joseph

28 Jan, 2015 06:02 PM

I added the following youtube iframe:

<iframe width="1280" height="720" src="//www.youtube.com/embed/$videoKey?wmode=transparent&rel=0" frameborder="0" allowfullscreen=""></iframe>

where $videoKey is the unique key from youtube for a video. I added &rel=0 to the href to hide related videos on end. Now I get the following error:

An error occurred while rendering asset preview: Error on line 18: The reference to entity "rel" must end with the ';' delimiter.

Is rel some sort of reserved word? How can I fix this

  1. 1 Posted by Ryan Griffith on 29 Jan, 2015 01:43 PM

    Ryan Griffith's Avatar

    Hi Joseph,

    When adding additional URL parameters, the ampersand (&) must be encoded to produce valid XML. When you have a moment, try using the following and let me know how it works out:

    &amp;rel=0
    

    Please let me know if you have any questions.

    Thanks!

  2. Ryan Griffith closed this discussion on 24 Feb, 2015 09:11 PM.

Discussions are closed to public comments.
If you need help with Cascade CMS please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

26 Aug, 2016 01:19 PM
25 Aug, 2016 03:02 PM
25 Aug, 2016 12:50 PM
24 Aug, 2016 08:43 PM
24 Aug, 2016 07:20 PM
21 Aug, 2016 01:20 PM