I know that in this code:
echo '<button style="width:100%;"class="uk-button" data-uk-modal="{target:#my-id'}">Kurstermine anzeigen</button>';
this: data-uk-modal="{target:#my-id'}"
causes that any other code below won't run. But how can I fix it? I already tried fixing it by adding \
before the "
but this doesn't change the behavior of the error.