sweetalert
sweetalert copied to clipboard
Links?
I am creating a small project based on someone else's work and I would like to give them credit. The links won't work correctly, and this is my code so far:
const el = document.createElement('div');
el.innerHTML = "<a href='profile'>@profile</a>";
swal({
title: "A Bit of info",
content: "This code was created by " + el + ".",
icon: "info",
});
and this is the output:
It doesn't show the link, and I don't know why.