+ Added cross-site scripting protection for javascript in the link href attribute - stripped out.
+ Made tag printing more DRY