在混合的php / javascript函数中选择正确的“和”

I'm using the sweet alert plugin for fancy javascript alerts. But U only need one alert, when there is something in the $_GET var. No Problem. Then I had put in a facebook box into the "text" and the script was broken. I figured out that without the php if statement it works so the problem has to be the ' and " of the line:

echo 'text: "Thank you so much for your support!<br><br><small>
Now please follow us on Facebook.</small><br><br><div class="fb-follow" 
data-href0="https://www.facebook.com/pages/Juuin/1618729241739708" 
data-layout="box_count" data-show-faces="true"></div>",';` 

The whole script is looking like this:

    <?php
if($_GET['reg'] == "sucess"){
    echo '<script>';
    echo 'sweetAlert({';
    echo 'title: "You did it!",'; 
    echo 'text: "Thank you so much for your support!<br><br><small>Now please follow us on Facebook.</small><br><br><div class="fb-follow" data-href0="https://www.facebook.com/pages/Juuin/1618729241739708" data-layout="box_count" data-show-faces="true"></div>",'; 
    echo 'html: true';
    echo '});';
    echo '</script>';
}
   ?>

Try this

<?php
if($_GET['reg'] == "sucess"){
   echo '<script> sweetAlert({title: "You did it!",text: "Thank you so much for your support!<br><br><small>Now please follow us on Facebook.</small><br><br><div class="fb-follow" data-href0="https://www.facebook.com/pages/Juuin/1618729241739708" data-layout="box_count" data-show-faces="true"></div>", html: true }); </script>';
}
   ?>

Let me know if it is helpful