code: function(element) {
      var links = element.querySelectorAll('*[href]');
      for (var i = 0; i < links.length; i++) {
        links[i].setAttribute('target', '_blank');
      }
      return element;
    }
docs: Find elements with href attributes and add a target=_blank so opened links
  will open in a new window