score:1

Accepted answer
comment.replace(link.toString(), 
 `<Youtube videoId="${link.getAttribute("href"),replace("https://youtu.be/", "")}"${link.toString()}`);


Related Query

More Query from same tag