decode_html_entities (::Utils)

    # File lib/rbot/core/utils/utils.rb, line 324
        def Utils.decode_html_entities(str)
          if defined? ::HTMLEntities
            return HTMLEntities.decode_entities(str)
          else
            str.gsub(/(&(.+?);)/) {
              symbol = $2
              # remove the 0-paddng from unicode integers
              if symbol =~ /^#(\d+)$/
                symbol = $1.to_i.to_s
              end

              # output the symbol's irc-translated character, or a * if it's unknown
              UNESCAPE_TABLE[symbol] || (symbol.match(/^\d+$/) ? [symbol.to_i].pack("U") : '*')
            }
          end
        end