Facebook plugin - validation

Hi Guys,

When I use a HTML validating service, I got the following error.  Should I do anything about it?

            Line 33, Column 79: & did not start a character reference. (& probably should have been escaped as &.)
            
            …dialog/oauth?client_id=XXXXXXX&redirect_uri=http%3A%2F%2FXXXXX%2Fu…
            
            
            Error Line 33, Column 151: & did not start a character reference. (& probably should have been escaped as &.)
            
            …ect_uri=http%3A%2F%XXXXX%2Fuser-login.php%3Faction%3DfbLogin&scope=email"

Cheers,

Tim (toledoh.com.au)

By Dave - February 17, 2013

Hi Guys,

When & chars are used in HTML tags they should be html encoded as & to validate.

Tim, try search for display=popup and then adding the following line of code in red below it.

  if ($popup) { $url .= "&display=popup"; }
  else        { $url = str_replace('&','&', $url); }

Let me know if that fixes the validation issues, if so we'll add this fix to the next release.

Thanks!

Dave Edis - Senior Developer
interactivetools.com

That's fixed it Dave - thanks!

Cheers,

Tim (toledoh.com.au)