var text = '';

http://xxx/ -> <a href="http://xxx/" target="_blank" rel="noopener">http://xxx/</a>
util.linkUrls(text);

var attr = '';
http://xxx/ -> <a href="http://xxx/" [attr]>http://xxx/</a>
util.linkUrls(text, attr);