Join Now! It's FREE. Get full access and benefit from this site
Tuesday, 02 June 2009 13:09

If you try to place the original entrecard code on your blog or website, you will get an invalid markup validation error.
Example (Original Entrecard code):
<script src="http://entrecard.s3.amazonaws.com/widget.js?user_id=5683&type=standard_200" type="text/javascript" id="ecard_widget"></script>
If you run a markup validation check at http://validator.w3.org/ - you will get 3 errors:
To make the code XHTML Valid, you will have to encode the & character.
To encode the & character, simply replace it with "&"
Sample:
<script src="http://entrecard.s3.amazonaws.com/widget.js?user_id=5683&type=standard_200" type="text/javascript" id="ecard_widget"></script>
Now you can re-run the validation check. Your Entrecard is now XHTML Valid!