Edit in JSFiddle

$('button').on('click', () => {
    swal({
      title: '<i>HTML</i> <u>example</u>',
      type: 'info',
      html:
        'You can use <b>bold text</b>, ' +
        '<a href="//github.com">links</a> ' +
        'and other HTML tags',
      showCloseButton: true,
      showCancelButton: true,
      confirmButtonText:
        '<i class="fa fa-thumbs-up"></i> Great!',
      cancelButtonText:
        '<i class="fa fa-thumbs-down"></i>'
		})
})
   
<button>Try me!</button>