How to make code generated dynamic link in a repeater to open in new window?

Hello

i suggest two ways:

first you can use .link method to make it open based on the target you set (_blank) - here

second idea, you can and html component and on click you send the link msg to it and makes it open in a new window using html component code:

<script type="text/javascript">
 window.onmessage = (event) => {
   if (event.data) {
     window.open(event.data);
   }
 }
</script>

check the html component message event -here

Best
Massa