Set content for an empty link

For a link whose content is empty, we can replace the content with the href attribute:
a[href^='http']:empty:before {
content: attr(href);
}

Demo

Set content for an empty link