Using Font Awesome 5 icon in JS

Something like this should works, but remember to add the new icon in the site setting svg icon

 const link = "<a href='"+url+"' target='_blank'><svg class="fa d-icon d-icon-ICON-NAME svg-icon svg-string" xmlns="http://www.w3.org/2000/svg"><use xlink:href="#ICON-NAME"></use></svg></a>";