fix for links with dom elements as content