text: /*
  * name:     LinkIt
  * author:   Sanishka Jayasena
  * version:  0.3.0
  * license:  MIT
  */
  
  (function($){
      $.fn.linkIt = function(options){
          // Default settings
          var settings =  $.extend({
              href    : null,
              text    : null,
              target  : '_self'
          }, options);
  
          // Validate
          if(settings.href == null){
              console.log('You need an href option for LinkIt to work');
              return this;
          }
  
          return this.each(function(){
              var object = $(this);
  
              if(settings.text == null){
                  settings.text = object.text();
              }
              object.wrap('<a target="'+settings.target+'" href="'+settings.href+'"></a>').text(settings.text);
          });
  
      }
  }(jQuery));
  