     unless @_loadSnapshot id
 
       @editor.setContent Encoder.htmlDecode template.rawContent
-      @readme.setContent description
+      @readme.setContent Encoder.htmlDecode description
       @variables.setContent ''
       @controllers.logs.set 'stack template loaded'
 

VariablesController = require '../controllers/variables'
CredentialsController = require '../controllers/credentials'

Help = require './help'



      @_current = id

    kd.utils.defer @editor.bound 'focus'


  check: (callback) ->

    [ err ] = @getConvertedContent()
    callback err


  getConvertedContent: ->

    convertedDoc = yamlToJson @editor.getContent()

    return if convertedDoc.err
    then [ 'Failed to convert YAML to JSON, fix the document and try again.' ]
    else [ null, convertedDoc ]


  _loadSnapshot: (id) ->
