               uuid        : t.uuid[0]
               amount      : t.total_in_cents[0]['_']
               currency    : t.currency[0]
-              description : if t.description[0].$ then "" else unescapeHTML t.description[0]
+              description : if t.description[0].$ then "" else unescape t.description[0]
               origin      : t.origin[0]
       callback no, adjustments
 

  data.feeInitial ?= 0 
  xml = """<plan>
             <plan_code>#{data.code}</plan_code>
             <name>#{data.title}</name>
             <setup_fee_in_cents>
               <USD>#{parseInt(data.feeInitial)}</USD>
             </setup_fee_in_cents>

               <month>#{data.cardMonth}</month>
               <year>#{data.cardYear}</year>

               <first_name>#{escape data.cardFirstName}</first_name>
               <last_name>#{escape data.cardLastName}</last_name>
               <address1>#{escape data.address1}</address1>
               <address2>#{escape data.address2}</address2>
               <city>#{escape data.city}</city>
               <state>#{escape data.state}</state>
               <zip>#{data.zipCode}</zip>
               <country>#{escacpe data.country}</country>

               <ip_address>#{data.ipAddress}</ip_address>
             </billing_info>
           </account>"""


  getAccount accountCode, (err, res) ->
    if err
      recurlyPost 'accounts', xmlWithBilling, (err, res) ->
        if err
          callback err, {}
        else
          callback no, res
    else
      if res.username
        recurlyPut "accounts/#{accountCode}", xml, (err, res) ->
          if err
            callback err, {}
          else
            setBilling accountCode, data, (err, res) ->
              if err
                callback err, {}
              else
                callback no, res
      else
        recurlyPost 'accounts', xmlWithBilling, (err, res) ->
          if err
            callback err, {}
          else
            callback no, res

setAccount = (accountCode, data, callback) ->
  # See https://docs.recurly.com/api/account for XML format
  xml = """<?xml version="1.0" encoding="UTF-8"?>
           <account>
             <account_code>#{accountCode}</account_code>
             <username>#{data.username}</username>
             <email>#{data.email}</email>
             <first_name>#{escape data.firstName}</first_name>
             <last_name>#{escape data.lastName}</last_name>
           </account>
  """
  getAccount accountCode, (err, res) ->
    if err
      recurlyPost 'accounts', xml, (err, res) ->
