I am using sweet-alert plugin to display an alert. With a classical config (defaults), everything goes OK. But when I want to add a HTML tag into the TEXT, it display
I assume that is not accepted inside the string.
Try to escape the forward slash "/" by preceding it with a backward slash "\" for example:
var hh = "test<\/b>";