xHTML Valid Entrecard Code
Last night before I slept, I tried to revalidate the code of this unDirty theme and noticed that it is not valid anymore. Here’s a screencap of the report overview:

Then, I tried to look at the errors below. It says that the errors are on the Entrecard widget code. I tried fixing it up for a couple of minutes until I actually found the real problem.

Entrecard supplied the non xHTML 1.0 Transitional code:
<script src="http://entrecard.s3.amazonaws.com/widget.js?type=standard_250&user_id=[YOUR_USER_ID]" type="text/javascript" id="ecard_widget"></script>The problem is on the &user_id part since the ampersand is also used in xHTML as an ascii-character generator such as for a breakline. To fix it, just change the ampersand to & yielding this result:
<script src="http://entrecard.s3.amazonaws.com/widget.js?type=standard_250&user_id=[YOUR_USER_ID]" type="text/javascript" id="ecard_widget"></script>Hope it helps!
Done reading? You are free to share your comments or insights regarding my post. You may also want to get updates thru RSS feed or thru email. You may also share this article to your Facebook friends or Twitter followers for free.


Conrad Miguel E. Gozalo is a 17-year old guy from General Santos City, Philippines. He is currently taking up his BS Computer Science at the University of the Philippines Diliman. He is a proud Linux user since August 2008. He is also a big fan of Free and Open Source Software. Know more about him on the 
4 Responses to “xHTML Valid Entrecard Code” (join them?)
March 2, 2008 at 12:38 pm
yo! may bago akong bahay.. hehhe
pakichange ng link..
March 3, 2008 at 12:26 pm
tol, pakipalitan ng brycebugz ang pulsecircle.. salamat
June 7, 2008 at 7:58 am
I do not see the difference between the two tags. Can someone explain the difference?
February 1, 2010 at 11:30 am
I use Mass-Follow.com to submit my articles to like 400 places
Leave a reply!