Geoff
Geoff

Reputation: 9590

Should URLs in meta tags contain ampersands?

Should a URL inside a meta tag contain ampersands directly or &? For example, this meta tag for working with Facebook's Open Graph:

  <meta property="og:image" content="https://somesite.com/api?url=http%3A%2F%2Fnews.website.com/img/4000%2Fjpg%2F_68009935_0198987080.jpg&amp;width=400&amp;height=400&amp;key=1234" />

Upvotes: 1

Views: 771

Answers (1)

Agent47DarkSoul
Agent47DarkSoul

Reputation: 448

The meta tag for image is url which facebook accesses to get the image. No need to put &amp just use & directly.

Upvotes: 1

Related Questions