次のコードがあります。
<a class='example-image-link' href='images/<?php echo addslashes($elevations);?>' data-lightbox='example-set' title='Click on the right side of the image to move forward.'><?php echo addslashes($elevations);?></a>
上記のコード<a>
では、php タグが閉じる場所でタグ?>
が閉じます。<a>
終了" タグは、"title"の"/>
後で閉じませんが、ここで閉じます。<?php echo addslashes($elevations);?>
つまり、 ? の後です。
考えられる原因と、これを修正するにはどうすればよいですか?