Added div.media_attr before <a> tags