def linkify_with_outgoing(text, nofollow=True, only_full=False):
 callbacks = ([linkify_only_full_urls] if only_full else [])
 callbacks.append(linkify_bounce_url_callback)
 if nofollow:
  callbacks.append(bleach.callbacks.nofollow)
 return bleach.linkify(unicode(text), callbacks=callbacks)

def linkify_with_outgoing ( text , nofollow = True , only_full = False ) : callbacks = ( [ linkify_only_full_urls ] if only_full else [ ] ) callbacks . append ( linkify_bounce_url_callback ) if nofollow : callbacks . append ( bleach . callbacks . nofollow ) return bleach . linkify ( unicode ( text ) , callbacks = callbacks )
wrapper around bleach .