code: function doAutoLinks(text) {
  
          text = text.replace(/<((https?|ftp|dict):[^'">\s]+)>/gi,"<a href=\"$1\">$1</a>");
          text = text.replace(/<(?:mailto:)?([-.\w]+\@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi, function(wholeMatch,m1) {
              return encodeEmailAddress(unescapeSpecialChars(m1));
          });
  
          return text;
      }
docs: }}} {{{ doAutoLinks