简体   繁体   中英

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" />

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM