How to solve this string literal error
<p>This code below is giving me a unterminated string literal error, how can this be fixed?</p>

<p>below is javascript code (QandAtable.php).</p>

<pre><code>$(".imageCancel").on("click", function(event) {

    var image_file_name = "&lt;?php echo str_replace("\n", "", $image_file_name); ?&gt;";

                  $('.upload_target').get(0).contentwindow
              $("iframe[name='upload_target']").attr("src", "javascript:'&lt;html&gt;&lt;/html&gt;'");

    jQuery.ajax("cancelimage.php" + image_file_name)
        .done(function(data) {

        $(".imagemsg" + _cancelimagecounter).html(data);
    });

    return stopImageUpload();

}); 
</code></pre>

<p>below is imagecancel.php script where the ajax links to:</p>

<pre><code>...

    $image_file_name = $_GET["fileImage"]["name"];

        echo "File Upload was Canceled";

            $imagecancelsql = "DELETE FROM Image 
            WHERE ImageFile = 'ImageFiles/". mysql_real_escape_string($image_file_name)."'";

        mysql_query($imagecancelsql);
</code></pre>

<p>In error console it is showing it as: <code>var image_file_name = "&lt;br /&gt;</code></p>
