Convert string into link javascript object : I have an object which have a property with a value of string.

 

        var notificationDetails = {
               dangerMessage: "I love basketball and love to watch it in. <a href='www.nba.com'>Link</a>;",
               seats: "1 seatRemaining",
               pName:  "Item 1",
               class:""
         };
    
      document.write(notificationDetails.dangerMessage);

How can I convert the a element  to a link in the dangerMessage property, it reads as string not the actual link. Thank you in advance.