     return null unless text
     # @expandWwwDotDomains @expandUrls @expandUsernames @expandTags text
     text = text.replace /&#10;/g, ' '
+    text = @expandUrls @expandUsernames text
     text = __utils.putShowMore text if shorten
-    @expandUrls @expandUsernames text
     # @expandWwwDotDomains @expandUrls @expandUsernames text
 
   expandWwwDotDomains: (text) ->

      suffix    = options.suffix     ? '...'

      longTextLength  = Encoder.htmlDecode(longText).length

      return longText if longTextLength < minLength or longTextLength < maxLength

      longText = Encoder.htmlDecode longText
      longText = longText.substr 0, maxLength

      # prefer to end the teaser at the end of a sentence (a period).
      # failing that prefer to end the teaser at the end of a word (a space).
      candidate = tryToShorten(longText, '. ', suffix) or tryToShorten longText, ' ', suffix

      Encoder.htmlEncode \
        if candidate?.length > minLength then candidate
        else longText


    shortenedText = __utils.shortenText text,
      minLength : l
      maxLength : l + Math.floor(l/10)
      suffix    : ''

    log "Length comparison", shortenedText.length-(Encoder.htmlEncode(shortenedText).length)

    text = if text.length > shortenedText.length
      morePart  = "<span class='collapsedtext hide'>"
