The original SweetAlert https://github.com/t4t5/sweetalert wasn't updated for a while so someone forked it and created the 2 one. The original is now back on track so you can pick either.
How can i put html on the alert? I try the next but doesn't works
swal({
title: 'Oops!',
content: 'Se encontraron problemas con el sistema de registro.<br><b>Por favor, comunicate con la administración.</b>',
icon: 'error'
});
@sylvert Try using 'html' instead of 'content'. It probably depends on if you're using the original sweetalert, or sweetalert2. I know 'html' works with sweetalert2, not sure on the original sweetalert as I don't use it.
I really don't know. The docs don't show anything about it. I'd suggest swapping it out for sweetalert2. They even show html in the examples, and it's almost the same as the original sweetalert.
https://limonte.github.io/sweetalert2/
/* Show the error alert */
let message = document.createElement('span');
message.innerHTML = 'Se encontraron problemas con el sistema de registro.<br><b>Por favor, comunicate con la administración.</b>';
swal({
title: 'Oops!',
content: message,
icon: 'error'
}).then(() => window.location.href = '/');