HTML Validation - Social Media Share HTML

Anonymous
Not applicable

HTML Validation - Social Media Share HTML

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?
Tags (1)
2 REPLIES 2
Bruce_Jeffers
Level 4

Re: HTML Validation - Social Media Share HTML

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.
Anonymous
Not applicable

Re: HTML Validation - Social Media Share HTML

Worked like a charm - thank you!