Anchor ($) tag at the end. 
Also this seems like a helper method that should go into common.