0

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.

Rushikumar
  • 1,774
  • 5
  • 18
  • 28

1 Answers1

0
<?php

echo <<<EOT
        <button style="width:100%;"class="uk-button" data-uk-modal="{target:#my-id'}">Kurstermine anzeigen</button> 

EOT;