ttr('data-html') ? component.attr('data-html') : component.html();

      html = cleanSource(html);
      $('#source-modal pre').text(html);
      $('#source-modal').modal();
    })

    function cleanSource(html) {
      html = html.replace(/×/g, '&times;')
        .replace(/«/g, '&laquo;')
        .replace(/»/g, '&raquo;')
        .replace(/←/g, '&larr;')
        .replace(/→/g, '&rarr;')

      var lines = html.split(/\n/);

      lines.shift();
      lines.splice(-1, 1);

      var indentSize = li