Embeding YouTube vids in Wordpress causes validation errors

Discussion in 'Web Design' started by bigbeats, Sep 26, 2009.

  1. bigbeats

    bigbeats Newbie

    Joined:
    Mar 7, 2009
    Messages:
    19
    Likes Received:
    0
    Location:
    Florida
    I noticed that YouTube videos when embedded are trowing validation errors caused by use of
    Code:
    &
    sign used in URL.

    I tried to use widget with same result. I also used several cleaner codes found on internet.

    Does anyone have a solution for this one? It would be highly appreciated.
     
  2. jammie

    jammie Power Member

    Joined:
    Feb 24, 2008
    Messages:
    773
    Likes Received:
    455
    because wordpress uses XML for parsing etc. and "&" is an illegal character.

    Simple solution; write it as "&" and it should be fine.