Hi,
I’m having a problem with embedding the YouTube player in a weblog entry. I have the body field set to allow all HTML and when I paste the embed code in through the ExpressionEngine control panel all work’s fine.
However when I am posting a weblog entry from an external source, such as MarsEdit or Feedgrab, the Youtube code gets changed from this:
<object width="425" height="344"><param name="movie"
value="http://www.youtube.com/v/YiefzD2J1_U&hl=en&fs=1&"></param>
</param></param><embed src="http://www.youtube.com/v/YiefzD2J1_U&hl=en&fs=1&"
type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"
width="425" height="344"></embed></object>to this:
<object width=“425” height=“344”><param
name=“movie”
value=“http://www.youtube.com/v/YiefzD2J1_U&hl=en&fs=1&”></param><
param name="allowFullScreen" value="true"></param></param><embed
src=“http://www.youtube.com/v/YiefzD2J1_U&hl=en&fs=1&”
type=“application/x-shockwave-flash” allowscriptaccess=“always”
allowfullscreen=“true” width=“425”
height=“344”></embed></object>It looks like the object and embed tags are being html encoded to prevent cross scripting hacks etc. As I’ve already mentioned, the weblog field is set to allow “all html” and I’m at a loss as to how fix this.
Is there some mystical EE setting somewhere I’m missing?
Any help would be greatly received 😊