HTML Validation - Social Media Share HTML | Community
Skip to main content
March 4, 2015
Question

HTML Validation - Social Media Share HTML

  • March 4, 2015
  • 2 replies
  • 834 views
I created a template that has Facebook, Twitter and LinkedIn share butotns (which share an event page). It works correctly however when I test it, however, when I do the HTML validation I get the following errors: 

line 582 column 171 - Warning: unescaped & or unknown entity "&url"
line 585 column 62 - Warning: unescaped & or unknown entity "&url"
line 582 column 7 - Warning: <a> escaping malformed URI reference.

Here's the code being referenced:

582
<a href="http://twitter.com/share?text=Outreach%20Marketing%20Virtual%20Summit%20is%20back!%20Join%20us%20April%2028%20for%20this%20free,%20all-day,%20online event!&url=http://www.grouphigh.com/outreach-marketing-summit"

585
<a href="http://twitter.com/share?text=Outreach%20Marketing%20Virtual%20Summit%20is%20back!%20Join%20us%20April%2028%20for%20this%20free,%20all-day,%20online event!&url=http://www.grouphigh.com/outreach-marketing-summit"

Any idea how to get this HTML validated?
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Bruce_Jeffers
Level 4
March 4, 2015
You might try changing the  &url  to  &amp;url   (use the character code instead of just the symbol)

Not a guarantee it will validate that way, but sometimes I've seen that needed in Twitter share URLs.
March 4, 2015
Worked like a charm - thank you!