Questo almeno funziona?
codice:
a:after { content: " [" attr(href) "] "; }
a[href|="#"]:after { display:none; }
Grazie.